[pve-devel] [PATCH manager] ui: BackupEdit: fix reset tracking
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 15 14:23:12 CET 2022
when the mode changes, we set the pool selector visible/hidden, but
we never disabled/enabled it. this tripped up the dirty state of the
form always showing the reset button as enabled.
to fix it, properly enable/disable it
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/Backup.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index c81a76cea..4638cbb68 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -322,10 +322,12 @@ Ext.define('PVE.dc.BackupEdit', {
vmgrid.setDisabled(true);
vmidField.setValue('');
selPool.setVisible(true);
+ selPool.setDisabled(false);
selPool.allowBlank = false;
selectPoolMembers(selPool.value);
} else {
selPool.setVisible(false);
+ selPool.setDisabled(true);
selPool.allowBlank = true;
}
let list = vmidField.getValue();
--
2.30.2
More information about the pve-devel
mailing list