From: Dietmar Maurer <dietmar@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 4/5] ui: add qemu Hardware and Options panel
Date: Thu, 27 Nov 2025 12:34:27 +0100 [thread overview]
Message-ID: <20251127113428.911697-4-dietmar@proxmox.com> (raw)
In-Reply-To: <20251127113428.911697-1-dietmar@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
ui/src/pve/qemu/mod.rs | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/ui/src/pve/qemu/mod.rs b/ui/src/pve/qemu/mod.rs
index c666f7e..ba35c2c 100644
--- a/ui/src/pve/qemu/mod.rs
+++ b/ui/src/pve/qemu/mod.rs
@@ -8,6 +8,8 @@ use yew::virtual_dom::{VComp, VNode};
use pwt::prelude::*;
use pwt::widget::{Fa, Row, TabBarItem, TabPanel};
+use proxmox_yew_comp::configuration::pve::{QemuHardwarePanel, QemuOptionsPanel};
+
use pdm_api_types::resource::PveQemuResource;
use crate::pve::utils::render_qemu_name;
@@ -70,6 +72,40 @@ impl yew::Component for QemuPanelComp {
}
},
)
+ .with_item_builder(
+ TabBarItem::new()
+ .key("hardware")
+ .label(tr!("Hardware"))
+ .icon_class("fa fa-desktop"),
+ {
+ let remote = props.remote.clone();
+ let node = props.node.clone();
+ let vmid = props.info.vmid;
+ move |_| {
+ QemuHardwarePanel::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 |_| {
+ QemuOptionsPanel::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 ` Dietmar Maurer [this message]
2025-11-27 12:39 ` [pdm-devel] [PATCH datacenter-manager 4/5] ui: add qemu Hardware and Options panel Lukas Wagner
2025-11-27 11:34 ` [pdm-devel] [PATCH datacenter-manager 5/5] ui: add lxc resources, network, dns and options panels Dietmar Maurer
2025-11-27 12:39 ` 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-4-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