From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>
Cc: "pve-devel" <pve-devel-bounces@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH manager] ui: fix datacenter notes toolbar visibility
Date: Fri, 12 Sep 2025 16:01:20 +0200 [thread overview]
Message-ID: <DCQVKMJXI7H7.2JV5IEBUHSQM3@proxmox.com> (raw)
In-Reply-To: <20250912113242.3139402-1-d.csapak@proxmox.com>
Since I was just now encountering this problem, gave this a quick spin.
Works as advertised, did not notice anything off.
Tested-by: Michael Köppl <m.koeppl@proxmox.com>
On Fri Sep 12, 2025 at 1:32 PM CEST, Dominik Csapak wrote:
> the recent commit
> d2660fc7 (ui: resource tree: improve performance on initial update)
> changed how we construct the resource tree, namely outside the
> treestore. While it worked fine mostly, the standard
> `Ext.data.TreeModel` was used. This lead to problem with the detection
> of some things, since we expected all properties that were defined on
> the custom `PVETree` model.
>
> To fix this, create an instance of `PVETree` instead.
> Note that this might also fix other things that depend on the
> PVETree specific properties on the datacenter root node.
>
> Fixes: d2660fc7 (ui: resource tree: improve performance on initial update)
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> this should probably also be backported to stable-bookworm
>
> www/manager6/tree/ResourceTree.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
> index 7a8d00c0..315976e0 100644
> --- a/www/manager6/tree/ResourceTree.js
> +++ b/www/manager6/tree/ResourceTree.js
> @@ -339,7 +339,7 @@ Ext.define('PVE.tree.ResourceTree', {
>
> let rootnode;
> if (firstUpdate) {
> - rootnode = Ext.create('Ext.data.TreeModel', {
> + rootnode = Ext.create('PVETree', {
> expanded: true,
> id: 'root',
> text: gettext('Datacenter'),
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-09-12 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-12 11:32 Dominik Csapak
2025-09-12 14:01 ` Michael Köppl [this message]
2025-09-12 14:09 ` [pve-devel] applied: " Thomas Lamprecht
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=DCQVKMJXI7H7.2JV5IEBUHSQM3@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=pve-devel-bounces@lists.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.