[pve-devel] [PATCH manager 8/8] reset FileSelector grid when changing the storage

Dominik Csapak d.csapak at proxmox.com
Wed Nov 8 10:53:22 CET 2017


otherwise, when the new storage returns an error, we show the content
of the old storage

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/form/FileSelector.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/form/FileSelector.js b/www/manager6/form/FileSelector.js
index aaf37d5c..fefe8470 100644
--- a/www/manager6/form/FileSelector.js
+++ b/www/manager6/form/FileSelector.js
@@ -34,6 +34,7 @@ Ext.define('PVE.form.FileSelector', {
 	    url: url
 	});
 
+	me.store.removeAll();
 	me.store.load();
     },
 
-- 
2.11.0





More information about the pve-devel mailing list