From 50e2e9edef5754acafd7ba147fb48c35f99caa1c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 12 Sep 2023 17:31:35 +0300 Subject: [PATCH] Add custom format score to history details --- .../History/Details/HistoryDetails.js | 55 +++++++++++++++---- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/frontend/src/Activity/History/Details/HistoryDetails.js b/frontend/src/Activity/History/Details/HistoryDetails.js index a32f249e00..a582d856a5 100644 --- a/frontend/src/Activity/History/Details/HistoryDetails.js +++ b/frontend/src/Activity/History/Details/HistoryDetails.js @@ -7,6 +7,7 @@ import DescriptionListItemTitle from 'Components/DescriptionList/DescriptionList import Link from 'Components/Link/Link'; 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 styles from './HistoryDetails.css'; @@ -24,10 +25,11 @@ function HistoryDetails(props) { const { indexer, releaseGroup, + movieMatchType, + customFormatScore, nzbInfoUrl, downloadClient, downloadClientName, - movieMatchType, age, ageHours, ageMinutes, @@ -64,16 +66,11 @@ function HistoryDetails(props) { } { - nzbInfoUrl ? - - - Info URL - - - - {nzbInfoUrl} - - : + customFormatScore && customFormatScore !== '0' ? + : null } @@ -87,6 +84,20 @@ function HistoryDetails(props) { null } + { + nzbInfoUrl ? + + + Info URL + + + + {nzbInfoUrl} + + : + null + } + { downloadClientNameInfo ? : null } + + { + customFormatScore && customFormatScore !== '0' ? + : + null + } ); } if (eventType === 'movieFileDeleted') { const { - reason + reason, + customFormatScore } = data; let reasonMessage = ''; @@ -229,6 +251,15 @@ function HistoryDetails(props) { title={translate('Reason')} data={reasonMessage} /> + + { + customFormatScore && customFormatScore !== '0' ? + : + null + } ); }