mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-25 07:23:45 +00:00
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:
parent
82260afcdd
commit
41c844b511
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user