[pve-devel] [PATCH v10 manager 07/19] ui: CD edit: handle change even if not yet rendered

Fabian Ebner f.ebner at proxmox.com
Wed Apr 6 10:04:04 CEST 2022


In preparation for the import functionality in the wizard, which will
set the radio field to 'none' when it might not yet be rendered.

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
[FE: split into its own patch]
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/qemu/CDEdit.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/www/manager6/qemu/CDEdit.js b/www/manager6/qemu/CDEdit.js
index 72c01037..27092d32 100644
--- a/www/manager6/qemu/CDEdit.js
+++ b/www/manager6/qemu/CDEdit.js
@@ -84,9 +84,6 @@ Ext.define('PVE.qemu.CDInputPanel', {
 	    checked: true,
 	    listeners: {
 		change: function(f, value) {
-		    if (!me.rendered) {
-			return;
-		    }
 		    me.down('field[name=cdstorage]').setDisabled(!value);
 		    var cdImageField = me.down('field[name=cdimage]');
 		    cdImageField.setDisabled(!value);
-- 
2.30.2






More information about the pve-devel mailing list