[pdm-devel] [RFC PATCH datacenter-manager 5/5] ui: main menu: use different icon for pbs remotes
Dominik Csapak
d.csapak at proxmox.com
Thu Dec 4 15:20:29 CET 2025
In most of the UI, we use 'server' for remotes, 'building' for PVE nodes
and 'building-o' for PBS nodes.
In the main menu we don't have the information if a remote is a single
node or not for PVE, but we know if it's PBS. So show the 'building-o'
for PBS remotes.
This makes it possible to see which kind of remote it is before
clicking, and wihtout inventing a custom naming scheme.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
We can of course choose different icons here if wanted, e.g. 'floppy-o'
for pbs remotes?
Maybe the best option would be to create some custom product icons that
we could use here and maybe for the favicon, etc. ?
ui/src/main_menu.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ui/src/main_menu.rs b/ui/src/main_menu.rs
index 18988eaf..8d44d8f1 100644
--- a/ui/src/main_menu.rs
+++ b/ui/src/main_menu.rs
@@ -347,7 +347,10 @@ impl Component for PdmMainMenu {
&mut content,
&remote.id,
&format!("remote-{}", remote.id),
- Some("fa fa-server"),
+ match remote.ty {
+ RemoteType::Pve => Some("fa fa-fw fa-server"),
+ RemoteType::Pbs => Some("fa fa-fw fa-building-o"),
+ },
{
let remote = remote.clone();
move |_| match remote.ty {
--
2.47.3
More information about the pdm-devel
mailing list