[pve-devel] [PATCH manager v2] ui: resource tree: show nodes/storages in tag view

Dominik Csapak d.csapak at proxmox.com
Fri Nov 15 15:08:13 CET 2024


this makes now use of the new sorting order since now we have
nodes, storages, and guests on one level in the tag view

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
this replaces my previous patch:
 ui: resource tree: show nodes/storages in pool/tag view by default

changes from that v1:
* don't show the storages/nodes in the pool view for now
* don't make it configurable, we can do that later too if people don't
  want to see it

 www/manager6/form/ViewSelector.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/form/ViewSelector.js b/www/manager6/form/ViewSelector.js
index f5de5c8e..6275b17b 100644
--- a/www/manager6/form/ViewSelector.js
+++ b/www/manager6/form/ViewSelector.js
@@ -35,7 +35,7 @@ Ext.define('PVE.form.ViewSelector', {
 	    tags: {
 		text: gettext('Tag View'),
 		groups: ['tag'],
-		getFilterFn: () => ({ data }) => data.type === 'qemu' || data.type === 'lxc',
+		getFilterFn: () => ({ data }) => ['qemu', 'lxc', 'node', 'storage'].indexOf(data.type) !== -1,
 		groupRenderer: function(info) {
 		    let tag = PVE.Utils.renderTags(info.tag, PVE.UIOptions.tagOverrides);
 		    return `<span class="proxmox-tags-full">${tag}</span>`;
-- 
2.39.5





More information about the pve-devel mailing list