From f5ccf9816257c363a249f7a3b8ad79675ed17851 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 14 Jul 2024 21:57:16 -0700 Subject: [PATCH] Rename 'On Upgrade' to 'On File Upgrade' --- .../src/Settings/Notifications/Notifications/Notification.js | 2 +- .../Notifications/Notifications/NotificationEventItems.js | 2 +- src/NzbDrone.Core/Localization/Core/en.json | 2 +- src/NzbDrone.Core/Notifications/ImportCompleteMessage.cs | 1 + src/NzbDrone.Core/Notifications/NotificationService.cs | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/Settings/Notifications/Notifications/Notification.js b/frontend/src/Settings/Notifications/Notifications/Notification.js index 22e17c18f..b2d0b29b5 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notification.js +++ b/frontend/src/Settings/Notifications/Notifications/Notification.js @@ -115,7 +115,7 @@ class Notification extends Component { { supportsOnUpgrade && onDownload && onUpgrade ? : null } diff --git a/frontend/src/Settings/Notifications/Notifications/NotificationEventItems.js b/frontend/src/Settings/Notifications/Notifications/NotificationEventItems.js index ddcdae4f5..cb09783b6 100644 --- a/frontend/src/Settings/Notifications/Notifications/NotificationEventItems.js +++ b/frontend/src/Settings/Notifications/Notifications/NotificationEventItems.js @@ -81,7 +81,7 @@ function NotificationEventItems(props) { Episodes { get; set; } public List EpisodeFiles { get; set; } public string SourcePath { get; set; } + public string SourceTitle { get; set; } public DownloadClientItemClientInfo DownloadClientInfo { get; set; } public string DownloadId { get; set; } public GrabbedReleaseInfo Release { get; set; } diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index 88e19f423..94741adc8 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -268,6 +268,7 @@ namespace NzbDrone.Core.Notifications Episodes = episodes, EpisodeFiles = message.EpisodeFiles, SourcePath = message.SourcePath, + SourceTitle = parsedEpisodeInfo.ReleaseTitle, DestinationPath = message.EpisodeFiles.Select(e => Path.Join(series.Path, e.RelativePath)).ToList().GetLongestCommonPath(), ReleaseGroup = parsedEpisodeInfo.ReleaseGroup, ReleaseQuality = parsedEpisodeInfo.Quality