mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-14 18:07:54 +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 {
|
} else {
|
||||||
me.setUser(value);
|
me.setUser(value);
|
||||||
}
|
}
|
||||||
|
tb.triggers.clear.setVisible(value.length > 0 && value !== 'all');
|
||||||
me.load();
|
me.load();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -362,6 +363,18 @@ Ext.define('PMG.QuarantineList', {
|
|||||||
selectOnFocus: true,
|
selectOnFocus: true,
|
||||||
reference: 'email',
|
reference: 'email',
|
||||||
fieldLabel: 'E-Mail',
|
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',
|
xtype: 'textfield',
|
||||||
|
Loading…
Reference in New Issue
Block a user