[pve-devel] [PATCH manager] ui: don't show tags/lock column in pool member grid

Dominik Csapak d.csapak at proxmox.com
Wed Mar 15 16:30:30 CET 2023


we use a different api call where we currently don't have the tags or
lock, so don't add the columns there

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
we could also add these in the api call, or use the resource grid as
source for the grid (not needing an api call at all), but for now
this seems to be the fastest fix for it

 www/manager6/grid/PoolMembers.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/manager6/grid/PoolMembers.js b/www/manager6/grid/PoolMembers.js
index 025288cc8..6acb622d6 100644
--- a/www/manager6/grid/PoolMembers.js
+++ b/www/manager6/grid/PoolMembers.js
@@ -160,7 +160,9 @@ Ext.define('PVE.grid.PoolMembers', {
 	    },
 	});
 
-	var coldef = PVE.data.ResourceStore.defaultColumns();
+	var coldef = PVE.data.ResourceStore.defaultColumns().filter((c) =>
+	    c.dataIndex !== 'tags' && c.dataIndex !== 'lock',
+	);
 
 	var reload = function() {
 	    store.load();
-- 
2.30.2






More information about the pve-devel mailing list