mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-13 16:47:20 +00:00
quarantines: mail filter: add clear trigger
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c03e51ed3a
commit
cd0b3ffca8
@ -190,6 +190,7 @@ Ext.define('PMG.QuarantineList', {
|
||||
} else {
|
||||
me.setUser(value);
|
||||
}
|
||||
tb.triggers.clear.setVisible(value.length > 0 && value !== 'all');
|
||||
me.load();
|
||||
},
|
||||
|
||||
@ -362,6 +363,18 @@ Ext.define('PMG.QuarantineList', {
|
||||
selectOnFocus: true,
|
||||
reference: 'email',
|
||||
fieldLabel: 'E-Mail',
|
||||
triggers: {
|
||||
clear: {
|
||||
cls: 'pmx-clear-trigger',
|
||||
weight: -1,
|
||||
hidden: true,
|
||||
handler: function() {
|
||||
this.triggers.clear.setVisible(false);
|
||||
// 'all' is unfiltered here, so empty/originalValue makes no sense
|
||||
this.setValue('all');
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'textfield',
|
||||
|
Loading…
Reference in New Issue
Block a user