2022-05-11 12:17:26 +00:00
|
|
|
Ext.define('PBS.form.VerifyOutdatedAfter', {
|
|
|
|
extend: 'Proxmox.form.field.Integer',
|
|
|
|
alias: 'widget.pbsVerifyOutdatedAfter',
|
|
|
|
|
|
|
|
name: 'outdated-after',
|
|
|
|
|
|
|
|
minValue: 1,
|
|
|
|
value: 30,
|
2022-05-16 14:46:06 +00:00
|
|
|
allowBlank: false,
|
2022-05-11 12:17:26 +00:00
|
|
|
|
|
|
|
triggers: {
|
|
|
|
clear: {
|
|
|
|
cls: 'pmx-clear-trigger',
|
|
|
|
weight: -1,
|
|
|
|
hidden: false,
|
|
|
|
handler: function() {
|
|
|
|
this.triggers.clear.setVisible(false);
|
|
|
|
this.setValue('');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
listeners: {
|
|
|
|
change: function(field, value) {
|
|
|
|
let canClear = value !== '';
|
|
|
|
field.triggers.clear.setVisible(canClear);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|