]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ResourceGrid: move first update to afterrender
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 26 May 2021 09:01:08 +0000 (11:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 May 2021 10:43:08 +0000 (12:43 +0200)
else with extjs 7.0, the first render does not happen yet, because
the grid is not visible at that time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/grid/ResourceGrid.js

index 07048b885ba1a4f2b25c3cffc1a64308564eabf8..29906a37676a050bf4930b81b5e55f18040a8632 100644 (file)
@@ -125,11 +125,13 @@ Ext.define('PVE.grid.ResourceGrid', {
                    var ws = me.up('pveStdWorkspace');
                    ws.selectById(record.data.id);
                },
+               afterrender: function() {
+                   updateGrid();
+               },
            },
             columns: rstore.defaultColumns(),
        });
        me.callParent();
-       updateGrid();
        me.mon(rstore, 'load', () => updateGrid());
     },
 });