From: Dietmar Maurer <dietmar@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 5/5] ui: add lxc resources, network, dns and options panels
Date: Thu, 27 Nov 2025 12:34:28 +0100 [thread overview]
Message-ID: <20251127113428.911697-5-dietmar@proxmox.com> (raw)
In-Reply-To: <20251127113428.911697-1-dietmar@proxmox.com>
With read-only mode.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
ui/src/pve/lxc/mod.rs | 71 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/ui/src/pve/lxc/mod.rs b/ui/src/pve/lxc/mod.rs
index dae6514..8dda5d6 100644
--- a/ui/src/pve/lxc/mod.rs
+++ b/ui/src/pve/lxc/mod.rs
@@ -1,5 +1,8 @@
mod overview;
use overview::LxcOverviewPanel;
+use proxmox_yew_comp::configuration::pve::{
+ LxcDnsPanel, LxcNetworkPanel, LxcOptionsPanel, LxcResourcesPanel,
+};
use std::rc::Rc;
@@ -70,6 +73,74 @@ impl yew::Component for LxcPanelComp {
}
},
)
+ .with_item_builder(
+ TabBarItem::new()
+ .key("resources")
+ .label(tr!("Resources"))
+ .icon_class("fa fa-cube"),
+ {
+ let remote = props.remote.clone();
+ let node = props.node.clone();
+ let vmid = props.info.vmid;
+ move |_| {
+ LxcResourcesPanel::new(node.clone(), vmid)
+ .readonly(true)
+ .remote(remote.clone())
+ .into()
+ }
+ },
+ )
+ .with_item_builder(
+ TabBarItem::new()
+ .key("network")
+ .label(tr!("Network"))
+ .icon_class("fa fa-exchange"),
+ {
+ let remote = props.remote.clone();
+ let node = props.node.clone();
+ let vmid = props.info.vmid;
+ move |_| {
+ LxcNetworkPanel::new(node.clone(), vmid)
+ .readonly(true)
+ .remote(remote.clone())
+ .into()
+ }
+ },
+ )
+ .with_item_builder(
+ TabBarItem::new()
+ .key("dns")
+ .label(tr!("DNS"))
+ .icon_class("fa fa-globe"),
+ {
+ let remote = props.remote.clone();
+ let node = props.node.clone();
+ let vmid = props.info.vmid;
+ move |_| {
+ LxcDnsPanel::new(node.clone(), vmid)
+ .readonly(true)
+ .remote(remote.clone())
+ .into()
+ }
+ },
+ )
+ .with_item_builder(
+ TabBarItem::new()
+ .key("options")
+ .label(tr!("Options"))
+ .icon_class("fa fa-gear"),
+ {
+ let remote = props.remote.clone();
+ let node = props.node.clone();
+ let vmid = props.info.vmid;
+ move |_| {
+ LxcOptionsPanel::new(node.clone(), vmid)
+ .readonly(true)
+ .remote(remote.clone())
+ .into()
+ }
+ },
+ )
.into()
}
}
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-11-27 11:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-27 11:34 [pdm-devel] [PATCH datacenter-manager 1/5] server: api: qemu: add pending api Dietmar Maurer
2025-11-27 11:34 ` [pdm-devel] [PATCH datacenter-manager 2/5] server: api: lxc: " Dietmar Maurer
2025-11-27 12:38 ` Lukas Wagner
2025-11-27 11:34 ` [pdm-devel] [PATCH datacenter-manager 3/5] ui: add cdrom icon Dietmar Maurer
2025-11-27 12:39 ` Lukas Wagner
2025-11-27 11:34 ` [pdm-devel] [PATCH datacenter-manager 4/5] ui: add qemu Hardware and Options panel Dietmar Maurer
2025-11-27 12:39 ` Lukas Wagner
2025-11-27 11:34 ` Dietmar Maurer [this message]
2025-11-27 12:39 ` [pdm-devel] [PATCH datacenter-manager 5/5] ui: add lxc resources, network, dns and options panels Lukas Wagner
2025-11-27 12:38 ` [pdm-devel] [PATCH datacenter-manager 1/5] server: api: qemu: add pending api Lukas Wagner
2025-11-27 17:46 ` 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=20251127113428.911697-5-dietmar@proxmox.com \
--to=dietmar@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