diff --git a/frontend/src/Activity/History/Details/HistoryDetails.tsx b/frontend/src/Activity/History/Details/HistoryDetails.tsx
index f460ec433..71375e828 100644
--- a/frontend/src/Activity/History/Details/HistoryDetails.tsx
+++ b/frontend/src/Activity/History/Details/HistoryDetails.tsx
@@ -20,6 +20,7 @@ import formatDateTime from 'Utilities/Date/formatDateTime';
import formatAge from 'Utilities/Number/formatAge';
import formatCustomFormatScore from 'Utilities/Number/formatCustomFormatScore';
import translate from 'Utilities/String/translate';
+import formatBytes from '../../../Utilities/Number/formatBytes';
import styles from './HistoryDetails.css';
interface HistoryDetailsProps {
@@ -50,6 +51,7 @@ function HistoryDetails(props: HistoryDetailsProps) {
ageHours,
ageMinutes,
publishedDate,
+ size,
} = data as GrabbedHistoryData;
const downloadClientNameInfo = downloadClientName ?? downloadClient;
@@ -160,6 +162,13 @@ function HistoryDetails(props: HistoryDetailsProps) {
})}
/>
) : null}
+
+ {size ? (
+
+ ) : null}
);
}
@@ -187,7 +196,7 @@ function HistoryDetails(props: HistoryDetailsProps) {
}
if (eventType === 'downloadFolderImported') {
- const { customFormatScore, droppedPath, importedPath } =
+ const { customFormatScore, droppedPath, importedPath, size } =
data as DownloadFolderImportedHistory;
return (
@@ -220,12 +229,20 @@ function HistoryDetails(props: HistoryDetailsProps) {
data={formatCustomFormatScore(parseInt(customFormatScore))}
/>
) : null}
+
+ {size ? (
+
+ ) : null}
);
}
if (eventType === 'episodeFileDeleted') {
- const { reason, customFormatScore } = data as EpisodeFileDeletedHistory;
+ const { reason, customFormatScore, size } =
+ data as EpisodeFileDeletedHistory;
let reasonMessage = '';
@@ -255,6 +272,13 @@ function HistoryDetails(props: HistoryDetailsProps) {
data={formatCustomFormatScore(parseInt(customFormatScore))}
/>
) : null}
+
+ {size ? (
+
+ ) : null}
);
}
diff --git a/frontend/src/typings/History.ts b/frontend/src/typings/History.ts
index bebde55c0..6e0a766a7 100644
--- a/frontend/src/typings/History.ts
+++ b/frontend/src/typings/History.ts
@@ -44,11 +44,13 @@ export interface DownloadFolderImportedHistory {
downloadClientName: string;
droppedPath: string;
importedPath: string;
+ size: string;
}
export interface EpisodeFileDeletedHistory {
customFormatScore?: string;
reason: 'Manual' | 'MissingFromDisk' | 'Upgrade';
+ size: string;
}
export interface EpisodeFileRenamedHistory {