From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager v2 3/3] ui: main menu: make expanded/collapsed state persistent
Date: Fri, 4 Sep 2026 12:26:36 +0200 [thread overview]
Message-ID: <20260904102643.3563579-4-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260904102643.3563579-1-d.csapak@proxmox.com>
by usint the new `stateful_id` property.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/main_menu.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/src/main_menu.rs b/ui/src/main_menu.rs
index 1fddfa6a..04cf302c 100644
--- a/ui/src/main_menu.rs
+++ b/ui/src/main_menu.rs
@@ -410,6 +410,7 @@ impl Component for PdmMainMenu {
let drawer = NavigationDrawer::new(menu)
.aria_label("Datacenter Manager")
+ .stateful_id("pdm-main-menu")
.class("pwt-border-end")
.class(css::Flex::None)
.width(275)
--
2.47.3
prev parent reply other threads:[~2026-09-04 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 10:26 [PATCH datacenter-manager/yew-widget-toolkit v2 0/3] ui: persist the main menus expanded state Dominik Csapak
2026-09-04 10:26 ` [PATCH yew-widget-toolkit v2 1/3] widget: navigation drawer: fix first open for default collapsed menus Dominik Csapak
2026-09-04 10:26 ` [PATCH yew-widget-toolkit v2 2/3] widget: navigation drawer: allow persisting the expanded state Dominik Csapak
2026-09-04 10:26 ` Dominik Csapak [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=20260904102643.3563579-4-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox