mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 00:24:03 +00:00
fix storage selector 'change' event handling
the initial loading of the storage selector fires a 'change' event via the 'onLoad' method of its parent class at that point the value of the storage selector is empty, and the callback function fails
This commit is contained in:
parent
0b409147ad
commit
e7f0e95e2f
@ -332,6 +332,9 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
|
||||
hidden: me.unused || !me.create,
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (!value) { // initial store loading fires an unwanted 'change'
|
||||
return;
|
||||
}
|
||||
if (me.mpdata.type === 'bind') {
|
||||
me.quota.setDisabled(true);
|
||||
me.quota.setValue(false);
|
||||
|
Loading…
Reference in New Issue
Block a user