From e1f7bce14b028305058ff9bd036a9d8dd5e241ac Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 7 Mar 2021 16:24:09 -0800 Subject: [PATCH] New: Simplify Connection trigger settings Closes #4351 --- .../EditNotificationModalContent.css | 9 + .../EditNotificationModalContent.js | 194 ++++++++---------- 2 files changed, 96 insertions(+), 107 deletions(-) diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.css b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.css index 8e1c16507..5ecf6f5d3 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.css +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.css @@ -9,3 +9,12 @@ margin-bottom: 30px; } + +.triggers { + margin-top: 3px; +} + +.triggerEvents { + margin-top: 10px; + user-select: none; +} diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js index fa24f65a5..f3243416c 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js @@ -13,6 +13,7 @@ import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormLabel from 'Components/Form/FormLabel'; import FormInputGroup from 'Components/Form/FormInputGroup'; +import FormInputHelpText from 'Components/Form/FormInputHelpText'; import ProviderFieldFormGroup from 'Components/Form/ProviderFieldFormGroup'; import styles from './EditNotificationModalContent.css'; @@ -102,131 +103,110 @@ function EditNotificationModalContent(props) { - On Grab + Triggers - - - - - On Import - - - - - { - onDownload.value && - - On Upgrade +
+ +
- - } - - - On Rename - - - - - - On Series Delete - - - - - - On Episode File Delete - - - - - { - onEpisodeFileDelete.value ? - - On Episode File Delete For Upgrade - : - null - } - - On Health Issue - - - - - { - onHealthIssue.value && - - Include Health Warnings + { + onDownload.value ? + : + null + } + + + + + + { + onEpisodeFileDelete.value ? + : + null + } + + - - } + + { + onHealthIssue.value ? + : + null + } +
+
+
Tags