From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id B8B6D1FF15C for ; Fri, 28 Nov 2025 11:46:43 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7EF65175E5; Fri, 28 Nov 2025 11:47:04 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Date: Fri, 28 Nov 2025 11:46:23 +0100 Message-ID: <20251128104629.1800904-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH datacenter-manager] ui: remotes: add navigation router to tab panels X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" that way the state is preserved across reloads and the changes are recorded in the browser history. Signed-off-by: Dominik Csapak --- ui/src/pbs/datastore.rs | 3 +++ ui/src/pbs/mod.rs | 2 ++ ui/src/pbs/node/mod.rs | 1 + ui/src/pve/lxc/mod.rs | 1 + ui/src/pve/mod.rs | 1 + ui/src/pve/node/mod.rs | 1 + ui/src/pve/qemu/mod.rs | 1 + 7 files changed, 10 insertions(+) diff --git a/ui/src/pbs/datastore.rs b/ui/src/pbs/datastore.rs index 3d4e6b6e..274c6ef9 100644 --- a/ui/src/pbs/datastore.rs +++ b/ui/src/pbs/datastore.rs @@ -46,10 +46,12 @@ impl Component for DatastorePanelComp { fn view(&self, ctx: &yew::Context) -> yew::Html { let props = ctx.props(); pwt::widget::TabPanel::new() + .router(true) .class(FlexFit) .title(tr!("Datastore {0}", props.config.name)) .with_item_builder( TabBarItem::new() + .key("overview") .label(tr!("Overview")) .icon_class("fa fa-tachometer"), { @@ -60,6 +62,7 @@ impl Component for DatastorePanelComp { ) .with_item_builder( TabBarItem::new() + .key("content") .label(tr!("Content")) .icon_class("fa fa-th"), { diff --git a/ui/src/pbs/mod.rs b/ui/src/pbs/mod.rs index 75ed9926..d14809c2 100644 --- a/ui/src/pbs/mod.rs +++ b/ui/src/pbs/mod.rs @@ -114,6 +114,8 @@ impl LoadableComponent for PbsRemoteComp { } }; + let content = NavigationContainer::new().with_child(content); + let title: Html = Row::new() .gap(2) .class(AlignItems::Center) diff --git a/ui/src/pbs/node/mod.rs b/ui/src/pbs/node/mod.rs index bab5727c..2033bb14 100644 --- a/ui/src/pbs/node/mod.rs +++ b/ui/src/pbs/node/mod.rs @@ -64,6 +64,7 @@ impl yew::Component for PbsNodePanelComp { .into(); TabPanel::new() + .router(true) .class(pwt::css::FlexFit) .title(title) .class(ColorScheme::Neutral) diff --git a/ui/src/pve/lxc/mod.rs b/ui/src/pve/lxc/mod.rs index 3d983a08..97c4d083 100644 --- a/ui/src/pve/lxc/mod.rs +++ b/ui/src/pve/lxc/mod.rs @@ -60,6 +60,7 @@ impl yew::Component for LxcPanelComp { .into(); TabPanel::new() + .router(true) .class(pwt::css::FlexFit) .title(title) .with_item_builder( diff --git a/ui/src/pve/mod.rs b/ui/src/pve/mod.rs index 4629077e..afbed5a8 100644 --- a/ui/src/pve/mod.rs +++ b/ui/src/pve/mod.rs @@ -200,6 +200,7 @@ impl LoadableComponent for PveRemoteComp { .into() } }; + let content = NavigationContainer::new().with_child(content); let link = ctx.link(); diff --git a/ui/src/pve/node/mod.rs b/ui/src/pve/node/mod.rs index de79185a..66ce8dda 100644 --- a/ui/src/pve/node/mod.rs +++ b/ui/src/pve/node/mod.rs @@ -68,6 +68,7 @@ impl yew::Component for PveNodePanelComp { .into(); TabPanel::new() + .router(true) .class(pwt::css::FlexFit) .title(title) .class(ColorScheme::Neutral) diff --git a/ui/src/pve/qemu/mod.rs b/ui/src/pve/qemu/mod.rs index 3b5f01b2..b3388f41 100644 --- a/ui/src/pve/qemu/mod.rs +++ b/ui/src/pve/qemu/mod.rs @@ -59,6 +59,7 @@ impl yew::Component for QemuPanelComp { .into(); TabPanel::new() + .router(true) .class(pwt::css::FlexFit) .title(title) .with_item_builder( -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel