diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js index 5c08e6622..4deb2e78c 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js @@ -42,10 +42,13 @@ function EditNotificationModalContent(props) { onDownload, onUpgrade, onRename, + onHealthIssue, supportsOnGrab, supportsOnDownload, supportsOnUpgrade, supportsOnRename, + supportsOnHealthIssue, + includeHealthWarnings, tags, fields, message @@ -147,6 +150,35 @@ function EditNotificationModalContent(props) { /> + + On Health Issue + + + + + { + onHealthIssue.value && + + Include Health Warnings + + + + } + Tags diff --git a/frontend/src/Settings/Notifications/Notifications/Notification.js b/frontend/src/Settings/Notifications/Notifications/Notification.js index 29c2b1465..ecea5b6db 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notification.js +++ b/frontend/src/Settings/Notifications/Notifications/Notification.js @@ -58,10 +58,12 @@ class Notification extends Component { onDownload, onUpgrade, onRename, + onHealthIssue, supportsOnGrab, supportsOnDownload, supportsOnUpgrade, - supportsOnRename + supportsOnRename, + supportsOnHealthIssue } = this.props; return ( @@ -103,7 +105,14 @@ class Notification extends Component { } { - !onGrab && !onDownload && !onRename && + supportsOnHealthIssue && onHealthIssue && + + } + + { + !onGrab && !onDownload && !onRename && !onHealthIssue &&