mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-04 05:14:08 +00:00
prune field: use dirtychange event to hide/show clear-trigger
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
455f5fe5ed
commit
bdabc5633f
@ -6,11 +6,7 @@ Ext.define('Proxmox.form.field.PruneKeep', {
|
|||||||
minValue: 1,
|
minValue: 1,
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
change: function(field, newValue, oldValue) {
|
dirtychange: (field, dirty) => field.triggers.clear.setVisible(dirty),
|
||||||
if (newValue !== this.originalValue) {
|
|
||||||
this.triggers.clear.setVisible(true);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
triggers: {
|
triggers: {
|
||||||
clear: {
|
clear: {
|
||||||
|
Loading…
Reference in New Issue
Block a user