mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-17 15:31:39 +00:00

otherwise it can happen that there as additional change event from null to '', even though the value did not change Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
34 lines
733 B
JavaScript
34 lines
733 B
JavaScript
Ext.define('PVE.form.StorageScanNodeSelector', {
|
|
extend: 'PVE.form.NodeSelector',
|
|
xtype: 'pveStorageScanNodeSelector',
|
|
|
|
name: 'storageScanNode',
|
|
itemId: 'pveStorageScanNodeSelector',
|
|
fieldLabel: gettext('Scan node'),
|
|
allowBlank: true,
|
|
disallowedNodes: undefined,
|
|
autoSelect: false,
|
|
submitValue: false,
|
|
value: null,
|
|
autoEl: {
|
|
tag: 'div',
|
|
'data-qtip': gettext('Scan for available storages on the selected node'),
|
|
},
|
|
triggers: {
|
|
clear: {
|
|
handler: function() {
|
|
let me = this;
|
|
me.setValue(null);
|
|
},
|
|
},
|
|
},
|
|
|
|
emptyText: Proxmox.NodeName,
|
|
|
|
setValue: function(value) {
|
|
let me = this;
|
|
me.callParent([value]);
|
|
me.triggers.clear.setVisible(!!value);
|
|
},
|
|
});
|