[pdm-devel] [PATCH datacenter-manager] ui: resource tree: name all columns and make them translatable
Shannon Sterz
s.sterz at proxmox.com
Tue Dec 16 16:52:54 CET 2025
not giving a column a name leads to bad UX when editing the currently
visible columns of a table. the menu will then render a checkbox with
an empty label which may appear confusing.
additionally, make all column headers of the table translatable.
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
ui/src/widget/resource_tree.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/src/widget/resource_tree.rs b/ui/src/widget/resource_tree.rs
index c7d6e67..ba178b8 100644
--- a/ui/src/widget/resource_tree.rs
+++ b/ui/src/widget/resource_tree.rs
@@ -414,7 +414,7 @@ fn columns(
.into()
})
.into(),
- DataTableColumn::new("Node")
+ DataTableColumn::new(tr!("Node"))
.width("150px")
.render(|item: &PdmTreeEntry| {
match item {
@@ -427,7 +427,7 @@ fn columns(
.into()
})
.into(),
- DataTableColumn::new("")
+ DataTableColumn::new(tr!("UI"))
.width("50px")
.justify("right")
.render({
--
2.47.3
More information about the pdm-devel
mailing list