]> git.proxmox.com Git - pve-manager.git/commitdiff
Fix a race conditon provoking the error no such file '/pve-storage-content'
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 21 Dec 2016 15:49:08 +0000 (16:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 3 Jan 2017 10:00:19 +0000 (11:00 +0100)
(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

index a924c0a4bd0bddf0482894e2b174eef7ea87489d..23a02813b566c10b80ffa957f8682377be9f0048 100644 (file)
@@ -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();