[pve-devel] [PATCH widget-toolkit 2/2] notification ui: display yellow warning triangle instead of red icon

Lukas Wagner l.wagner at proxmox.com
Thu Nov 23 09:57:56 CET 2023


Instead of coloring the entire icon red, show a yellow warning
triangle containing an exclamation mark in case of validation errors.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 src/window/NotificationMatcherEdit.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/window/NotificationMatcherEdit.js b/src/window/NotificationMatcherEdit.js
index 5e81e40..f88576a 100644
--- a/src/window/NotificationMatcherEdit.js
+++ b/src/window/NotificationMatcherEdit.js
@@ -593,7 +593,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleTree', {
 		text = Ext.String.format(gettext("Match severity: {0}"), v);
 		iconCls = 'fa fa-exclamation';
 		if (!v) {
-		    iconCls += ' critical';
+		    iconCls += ' internal-error';
 		}
 	    } break;
 	    case 'match-field': {
@@ -602,7 +602,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleTree', {
 		text = Ext.String.format(gettext("Match field: {0}={1}"), field, value);
 		iconCls = 'fa fa-square-o';
 		if (!field || !value) {
-		    iconCls += ' critical';
+		    iconCls += ' internal-error';
 		}
 	    } break;
 	    case 'match-calendar': {
@@ -610,7 +610,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleTree', {
 		text = Ext.String.format(gettext("Match calendar: {0}"), v);
 		iconCls = 'fa fa-calendar-o';
 		if (!v || !v.length) {
-		    iconCls += ' critical';
+		    iconCls += ' internal-error';
 		}
 	    } break;
 	    case 'mode':
-- 
2.39.2






More information about the pve-devel mailing list