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.wag...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to