ui: lvm-thin: fix not being able to edit the storage
The change handler of the edit config from a displayEditField still triggers, even if hidden and disabled. This then enables another editConfig part of a displayEditField, which triggers an error in the API. To fix that, simply check if this field is disabled before setting the other fields value Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
14be326456
commit
bd757b70e1
@ -148,7 +148,7 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
|
||||
},
|
||||
change: function(f, value) {
|
||||
let vgField = this.up('inputpanel').lookup('thinPoolSelector');
|
||||
if (vgField) {
|
||||
if (vgField && !f.isDisabled()) {
|
||||
vgField.setDisabled(!value);
|
||||
vgField.setVG(value);
|
||||
vgField.setValue('');
|
||||
|
Loading…
Reference in New Issue
Block a user