[pdm-devel] [PATCH proxmox-yew-comp] task description: use hyphen (-) between the id and the action
Lukas Wagner
l.wagner at proxmox.com
Wed Dec 17 15:53:23 CET 2025
This way it matches the way we render task descriptions in the JS code.
For instance, PBS GC tasks are now rendered as
"Datastore store2 - Garbage Collect"
instead of
"Datastore store2 Garbage Collect"
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
src/utils/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 856297f..ca40fa3 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -184,7 +184,7 @@ impl<A: Display, B: Display> IntoTaskDescriptionRenderFn for (A, B) {
let action = self.1.to_string();
Box::new(move |_, id| {
format!(
- "{} {} {}",
+ "{} {} - {}",
task_type,
id.as_deref().unwrap_or("unknown"),
action
--
2.47.3
More information about the pdm-devel
mailing list