From 0672fc7b8596c56f0534983a7be10d52d785d6a2 Mon Sep 17 00:00:00 2001 From: nitsua Date: Fri, 9 Oct 2020 09:08:46 -0400 Subject: [PATCH] Custom Notification cleanup - Renamed event "BookDownload" to "Download" to match sonarr/radarr - Renamed "TrackRetag" to "BookRetag" (Lidarr leftovers) --- .../Notifications/Notifications/Notification.js | 14 +++++++------- .../Notifications/NotificationEventItems.js | 12 ++++++------ .../src/Store/Actions/Settings/notifications.js | 2 +- .../NotificationTests/NotificationBaseFixture.cs | 10 +++++----- .../004_rename_supports_on_track_retag.cs | 14 ++++++++++++++ src/NzbDrone.Core/Datastore/TableMapping.cs | 2 +- .../Notifications/CustomScript/CustomScript.cs | 6 +++--- src/NzbDrone.Core/Notifications/Discord/Discord.cs | 2 +- src/NzbDrone.Core/Notifications/INotification.cs | 4 ++-- .../Notifications/NotificationBase.cs | 4 ++-- .../Notifications/NotificationDefinition.cs | 6 +++--- .../Notifications/NotificationFactory.cs | 8 ++++---- .../Notifications/NotificationService.cs | 4 ++-- src/NzbDrone.Core/Notifications/Slack/Slack.cs | 2 +- .../Notifications/Subsonic/Subsonic.cs | 2 +- .../Notifications/Synology/SynologyIndexer.cs | 2 +- src/NzbDrone.Core/Notifications/Webhook/Webhook.cs | 2 +- .../Notifications/NotificationResource.cs | 12 ++++++------ 18 files changed, 61 insertions(+), 47 deletions(-) create mode 100644 src/NzbDrone.Core/Datastore/Migration/004_rename_supports_on_track_retag.cs diff --git a/frontend/src/Settings/Notifications/Notifications/Notification.js b/frontend/src/Settings/Notifications/Notifications/Notification.js index 5c798e599..c27f96d5d 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notification.js +++ b/frontend/src/Settings/Notifications/Notifications/Notification.js @@ -61,7 +61,7 @@ class Notification extends Component { onHealthIssue, onDownloadFailure, onImportFailure, - onTrackRetag, + onBookRetag, supportsOnGrab, supportsOnReleaseImport, supportsOnUpgrade, @@ -69,7 +69,7 @@ class Notification extends Component { supportsOnHealthIssue, supportsOnDownloadFailure, supportsOnImportFailure, - supportsOnTrackRetag + supportsOnBookRetag } = this.props; return ( @@ -111,9 +111,9 @@ class Notification extends Component { } { - supportsOnTrackRetag && onTrackRetag && + supportsOnBookRetag && onBookRetag && } @@ -139,7 +139,7 @@ class Notification extends Component { } { - !onGrab && !onReleaseImport && !onRename && !onTrackRetag && + !onGrab && !onReleaseImport && !onRename && !onBookRetag && !onHealthIssue && !onDownloadFailure && !onImportFailure &&