From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 2/2] ui: pve: tree: add title in the toolbar
Date: Tue, 23 Sep 2025 11:42:57 +0200 [thread overview]
Message-ID: <20250923094311.1612890-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250923094311.1612890-1-d.csapak@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/pve/tree.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ui/src/pve/tree.rs b/ui/src/pve/tree.rs
index a1b83020..299fd895 100644
--- a/ui/src/pve/tree.rs
+++ b/ui/src/pve/tree.rs
@@ -10,7 +10,7 @@ use yew::{
use proxmox_yew_comp::{
LoadableComponent, LoadableComponentContext, LoadableComponentLink, LoadableComponentMaster,
};
-use pwt::css::{AlignItems, ColorScheme, FlexFit, JustifyContent};
+use pwt::css::{AlignItems, ColorScheme, FlexFit, FontStyle, JustifyContent};
use pwt::props::{ContainerBuilder, CssBorderBuilder, ExtractPrimaryKey, WidgetBuilder};
use pwt::state::{KeyedSlabTree, NavigationContext, NavigationContextExt, Selection, TreeStore};
use pwt::widget::{
@@ -460,6 +460,14 @@ impl LoadableComponent for PveTreeComp {
.with_child(
Toolbar::new()
.border_bottom(true)
+ .with_child(
+ Row::new()
+ .class(AlignItems::Baseline)
+ .class(FontStyle::TitleMedium)
+ .gap(2)
+ .with_child(Fa::new("server"))
+ .with_child(tr!("Resources")),
+ )
.with_child(
Field::new()
.value(self.filter.clone())
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
prev parent reply other threads:[~2025-09-23 9:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-23 9:42 [pdm-devel] [PATCH datacenter-manager 1/2] ui: pve: clippy fix Dominik Csapak
2025-09-23 9:42 ` Dominik Csapak [this message]
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=20250923094311.1612890-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