[pve-devel] [PATCH manager 2/6] ui: ResourceGrid: move first update to afterrender

Dominik Csapak d.csapak at proxmox.com
Wed May 26 11:01:08 CEST 2021


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 at proxmox.com>
---
 www/manager6/grid/ResourceGrid.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/manager6/grid/ResourceGrid.js b/www/manager6/grid/ResourceGrid.js
index 07048b88..29906a37 100644
--- a/www/manager6/grid/ResourceGrid.js
+++ b/www/manager6/grid/ResourceGrid.js
@@ -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());
     },
 });
-- 
2.20.1






More information about the pve-devel mailing list