[pve-devel] [PATCH proxmox-widget-toolkit 2/2] notification ui: add 'unknown' to match-severity dropdown
Lukas Wagner
l.wagner at proxmox.com
Tue Nov 21 17:01:45 CET 2023
This is the severity used for forwarded mails, since we cannot
reasonably infer a priority here.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
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 ee08c16..1e755dd 100644
--- a/src/window/NotificationMatcherEdit.js
+++ b/src/window/NotificationMatcherEdit.js
@@ -341,7 +341,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':
@@ -1096,6 +1096,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleSettings', {
['notice', gettext('Notice')],
['warning', gettext('Warning')],
['error', gettext('Error')],
+ ['unknown', gettext('Unknown')],
],
},
{
--
2.39.2
More information about the pve-devel
mailing list