From 6ed92b735fc71204a1092f3b8aeddd385954ee96 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 21 Nov 2023 17:01:45 +0100 Subject: [PATCH] notification ui: add 'unknown' to match-severity dropdown This is the severity used for forwarded mails, since we cannot reasonably infer a priority here. Signed-off-by: Lukas Wagner --- src/window/NotificationMatcherEdit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window/NotificationMatcherEdit.js b/src/window/NotificationMatcherEdit.js index 9ee34fd..03b453d 100644 --- a/src/window/NotificationMatcherEdit.js +++ b/src/window/NotificationMatcherEdit.js @@ -342,7 +342,7 @@ Ext.define('Proxmox.panel.NotificationRulesEditPanel', { switch (value) { case 'match-severity': data = { - value: ['info', 'notice', 'warning', 'error'], + value: ['info', 'notice', 'warning', 'error', 'unknown'], }; break; case 'match-field': @@ -1097,6 +1097,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleSettings', { ['notice', gettext('Notice')], ['warning', gettext('Warning')], ['error', gettext('Error')], + ['unknown', gettext('Unknown')], ], }, {