From 1fc3d8cd1c40f8f2607d486f73f4d8da4fcddf56 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Thu, 23 Nov 2023 09:57:56 +0100 Subject: [PATCH] notification ui: display yellow warning triangle instead of red icon 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 --- 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':