all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Lukas Wagner <l.wagner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-widget-toolkit 2/2] notification ui: add 'unknown' to match-severity dropdown
Date: Tue, 21 Nov 2023 17:01:45 +0100	[thread overview]
Message-ID: <20231121160145.291306-3-l.wagner@proxmox.com> (raw)
In-Reply-To: <20231121160145.291306-1-l.wagner@proxmox.com>

This is the severity used for forwarded mails, since we cannot
reasonably infer a priority here.

Signed-off-by: Lukas Wagner <l.wagner@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





  parent reply	other threads:[~2023-11-21 16:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 16:01 [pve-devel] [PATCH docs/proxmox-widget-toolkit 0/2] notifications: document 'unknown' severity and add to GUI Lukas Wagner
2023-11-21 16:01 ` [pve-devel] [PATCH pve-docs 1/2] notification: document 'unknown' severity Lukas Wagner
2023-11-21 16:01 ` Lukas Wagner [this message]
2023-11-21 19:52 ` [pve-devel] applied-series: [PATCH docs/proxmox-widget-toolkit 0/2] notifications: document 'unknown' severity and add to GUI Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231121160145.291306-3-l.wagner@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal