[pve-devel] [PATCH manager] fix #2810: reset state of mounts array in initComponent

Dominik Csapak d.csapak at proxmox.com
Wed Jun 24 09:32:37 CEST 2020


so that each new instance has an empty mounts list

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
@fabian @oguz, i remembered that i know this issue and had a fix already^^
 www/manager6/lxc/FeaturesEdit.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/manager6/lxc/FeaturesEdit.js b/www/manager6/lxc/FeaturesEdit.js
index 1275a2e0..e0b851de 100644
--- a/www/manager6/lxc/FeaturesEdit.js
+++ b/www/manager6/lxc/FeaturesEdit.js
@@ -108,7 +108,13 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
 	    }
 	    this.callParent([res]);
 	}
-    }
+    },
+
+    initComponent: function() {
+	let me = this;
+	me.mounts = []; // reset state
+	me.callParent();
+    },
 });
 
 Ext.define('PVE.lxc.FeaturesEdit', {
-- 
2.20.1





More information about the pve-devel mailing list