From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 2/2] ui: move global guest panel in the top level navigation
Date: Tue, 26 May 2026 12:27:51 +0200 [thread overview]
Message-ID: <20260526102805.1977534-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260526102805.1977534-1-d.csapak@proxmox.com>
It's a very useful view to have so don't hide it in the remotes tab
panel.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/main_menu.rs | 10 ++++++++++
ui/src/remotes/mod.rs | 9 ---------
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/ui/src/main_menu.rs b/ui/src/main_menu.rs
index a8af7502..d2c56e0b 100644
--- a/ui/src/main_menu.rs
+++ b/ui/src/main_menu.rs
@@ -19,6 +19,7 @@ use crate::configuration::subscription_panel::SubscriptionPanel;
use crate::configuration::subscription_registry::SubscriptionRegistryProps;
use crate::configuration::views::ViewGrid;
use crate::dashboard::view::View;
+use crate::guests::GuestPanel;
use crate::remotes::RemotesPanel;
use crate::sdn::evpn::EvpnPanel;
use crate::sdn::ZoneTree;
@@ -359,6 +360,15 @@ impl Component for PdmMainMenu {
|_| CephView::new().into(),
);
+ register_view(
+ &mut menu,
+ &mut content,
+ tr!("Guests"),
+ "guests",
+ Some("fa fa-desktop"),
+ |_| GuestPanel::new().into(),
+ );
+
let mut remote_submenu = Menu::new();
for remote in props.remote_list.iter() {
diff --git a/ui/src/remotes/mod.rs b/ui/src/remotes/mod.rs
index a8edab23..ddc8365a 100644
--- a/ui/src/remotes/mod.rs
+++ b/ui/src/remotes/mod.rs
@@ -40,8 +40,6 @@ use auto_installer::AutoInstallerPanel;
use yew::{function_component, Html};
-use crate::guests::GuestPanel;
-
use pwt::prelude::*;
use pwt::{
props::StorageLocation,
@@ -63,13 +61,6 @@ pub fn system_configuration() -> Html {
.icon_class("fa fa-cogs"),
|_| RemoteConfigPanel::new().into(),
)
- .with_item_builder(
- TabBarItem::new()
- .key("guests")
- .label(tr!("Guests"))
- .icon_class("fa fa-desktop"),
- |_| GuestPanel::new().into(),
- )
.with_item_builder(
TabBarItem::new()
.key("tasks")
--
2.47.3
next prev parent reply other threads:[~2026-05-26 10:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 10:27 [PATCH datacenter-manager 1/2] ui: ceph: fix vertical alignment of usage meter Dominik Csapak
2026-05-26 10:27 ` Dominik Csapak [this message]
2026-05-26 11:04 ` [PATCH datacenter-manager 2/2] ui: move global guest panel in the top level navigation Lukas Wagner
2026-05-26 12:07 ` Thomas Lamprecht
2026-05-26 13:47 ` applied: [PATCH datacenter-manager 1/2] ui: ceph: fix vertical alignment of usage meter 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=20260526102805.1977534-2-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