From: Jonas Theisen <j.theisen@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager 3/3] ui: resource-tree: filter newly added mappings
Date: Wed, 9 Sep 2026 18:29:31 +0200 [thread overview]
Message-ID: <20260909163013.444378-4-j.theisen@proxmox.com> (raw)
In-Reply-To: <20260909163013.444378-1-j.theisen@proxmox.com>
The newly added mapping resources added to the PVE API
unintentionally show up in the Resource Tree.
This patch adds a permanent filter to hide these objects
by filtering for the type.
Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
---
www/manager6/tree/ResourceTree.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index e2acc431..88971a6b 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -330,6 +330,19 @@ Ext.define('PVE.tree.ResourceTree', {
},
});
+ store.addFilter({
+ id: 'typeFilter',
+ filterFn: function (node) {
+ if (!node.data || !node.data.type) {
+ return true;
+ }
+
+ let hiddenTypes = ['mapping'];
+
+ return !Ext.Array.contains(hiddenTypes, node.data.type);
+ },
+ });
+
let stateid = 'rid';
const changedFields = [
--
2.47.3
prev parent reply other threads:[~2026-09-09 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 16:29 [PATCH pve-manager 0/3] show mappings in ACL path selector Jonas Theisen
2026-09-09 16:29 ` [PATCH pve-manager 1/3] api: add mappings to resources endpoint Jonas Theisen
2026-09-09 16:29 ` [PATCH pve-manager 2/3] ui: acl: add mappings to ACL path list Jonas Theisen
2026-09-09 16:29 ` Jonas Theisen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260909163013.444378-4-j.theisen@proxmox.com \
--to=j.theisen@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.