From 088371535147fd91022d73651adadc76ecb2ce1c Mon Sep 17 00:00:00 2001 From: Neureka Date: Thu, 23 Apr 2026 12:57:21 -0700 Subject: [PATCH] Add VIP expiration notification toggle --- .../Notifications/Notification.js | 14 ++++++- .../Notifications/NotificationEventItems.js | 13 ++++++ frontend/src/typings/Notification.ts | 2 + .../044_vip_expiration_notification.cs | 14 +++++++ src/NzbDrone.Core/Datastore/TableMapping.cs | 1 + src/NzbDrone.Core/Localization/Core/en.json | 2 + .../Notifications/NotificationDefinition.cs | 4 +- .../Notifications/NotificationFactory.cs | 12 ++++++ .../Notifications/NotificationService.cs | 40 +++++++++++++++++-- .../Notifications/NotificationResource.cs | 6 +++ src/Prowlarr.Api.V1/openapi.json | 8 +++- 11 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 src/NzbDrone.Core/Datastore/Migration/044_vip_expiration_notification.cs diff --git a/frontend/src/Settings/Notifications/Notifications/Notification.js b/frontend/src/Settings/Notifications/Notifications/Notification.js index 4ecf33047..a0f8fefa4 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notification.js +++ b/frontend/src/Settings/Notifications/Notifications/Notification.js @@ -59,10 +59,12 @@ class Notification extends Component { onGrab, onHealthIssue, onHealthRestored, + onVipExpiration, onApplicationUpdate, supportsOnGrab, supportsOnHealthIssue, supportsOnHealthRestored, + supportsOnVipExpiration, supportsOnApplicationUpdate, tags, tagList @@ -102,6 +104,14 @@ class Notification extends Component { null } + { + supportsOnVipExpiration && onVipExpiration ? + : + null + } + { supportsOnApplicationUpdate && onApplicationUpdate ?