fix #6088: notification: matcher: use more descriptive strings

Add separate text for inverted and non-inverted cases, this should
reduce some confusion about how inversion works and allow for better
translations.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
 [TL: expand commit message.]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2025-01-28 10:31:59 +01:00 committed by Thomas Lamprecht
parent 82260afcdd
commit 41c844b511

View File

@ -491,12 +491,17 @@ Ext.define('Proxmox.panel.NotificationMatchRuleTree', {
} break;
case 'mode':
if (data.value === 'all') {
text = gettext("All");
} else if (data.value === 'any') {
text = gettext("Any");
}
if (data.invert) {
text = `!${text}`;
text = gettext('At least one rule does not match');
} else {
text = gettext('All rules match');
}
} else if (data.value === 'any') {
if (data.invert) {
text = gettext('No rule matches');
} else {
text = gettext('Any rule matches');
}
}
iconCls = 'fa fa-filter';