[pve-devel] [PATCH manager] Fix a race conditon provoking the error no such file '/pve-storage-content'

Emmanuel Kasper e.kasper at proxmox.com
Wed Dec 21 16:49:08 CET 2016


(NB: the error was only displayed intermittently in the browser console)

The reload call could try a store reload before the store has
a defined url.
The call here is useless since the initial display of
the storage selector compoment will call setStorage() to pass an url
to the store and load it.

Also remove the test on me.store.proxy.url since it was not working
(ExtJS autodefined an URL based on the model name)
---
 www/manager6/grid/BackupView.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index a924c0a..23a0281 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -65,7 +65,7 @@ Ext.define('PVE.grid.BackupView', {
 	});
 
 	var reload = Ext.Function.createBuffered(function() {
-	    if (me.store && me.store.proxy.url) {
+	    if (me.store) {
 		me.store.load();
 	    }
 	}, 100);
@@ -231,10 +231,7 @@ Ext.define('PVE.grid.BackupView', {
 		    renderer: PVE.Utils.format_size,
 		    dataIndex: 'size'
 		}
-	    ],
-	    listeners: {
-		activate: reload
-	    }
+	    ]
 	});
 
 	me.callParent();
-- 
2.1.4





More information about the pve-devel mailing list