From 41b65abd1d45bb3dae2a7b7cddfc9f621e87c1c9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 24 Mar 2025 20:32:40 -0700 Subject: [PATCH] New: Show episode count in season interactive search modal Closes #7747 --- .../Series/Details/SeriesDetailsSeason.tsx | 1 + .../Search/SeasonInteractiveSearchModal.tsx | 13 ++++++----- .../SeasonInteractiveSearchModalContent.css | 5 ++++ ...asonInteractiveSearchModalContent.css.d.ts | 7 ++++++ .../SeasonInteractiveSearchModalContent.tsx | 23 +++++++++++++------ src/NzbDrone.Core/Localization/Core/en.json | 1 + 6 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 frontend/src/Series/Search/SeasonInteractiveSearchModalContent.css create mode 100644 frontend/src/Series/Search/SeasonInteractiveSearchModalContent.css.d.ts diff --git a/frontend/src/Series/Details/SeriesDetailsSeason.tsx b/frontend/src/Series/Details/SeriesDetailsSeason.tsx index 801f3eddd..fd5298121 100644 --- a/frontend/src/Series/Details/SeriesDetailsSeason.tsx +++ b/frontend/src/Series/Details/SeriesDetailsSeason.tsx @@ -562,6 +562,7 @@ function SeriesDetailsSeason({ @@ -40,7 +43,13 @@ function SeasonInteractiveSearchModalContent( /> - + +
+ {translate('EpisodesInSeason', { + episodeCount, + })} +
+
diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 5f71b236a..9be8b22b1 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -649,6 +649,7 @@ "EpisodeHistoryLoadError": "Unable to load episode history", "EpisodeImported": "Episode Imported", "EpisodeImportedTooltip": "Episode downloaded successfully and picked up from download client", + "EpisodesInSeason": "{episodeCount} episodes in season", "EpisodeInfo": "Episode Info", "EpisodeIsDownloading": "Episode is downloading", "EpisodeIsNotMonitored": "Episode is not monitored",