[pdm-devel] [PATCH proxmox-datacenter-manager] dashboard: Remove unused parameter in string
Maximiliano Sandoval
m.sandoval at proxmox.com
Fri Sep 12 08:53:31 CEST 2025
Starting the enumeration at 1 is confusing. There were already two
translations where the 0 was used as the index.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
ui/src/dashboard/mod.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ui/src/dashboard/mod.rs b/ui/src/dashboard/mod.rs
index 6135568..dce1c73 100644
--- a/ui/src/dashboard/mod.rs
+++ b/ui/src/dashboard/mod.rs
@@ -272,9 +272,8 @@ impl PdmDashboard {
) -> Panel {
let (hours, since) = Self::get_task_options(&self.config);
let title = match remotes {
- Some(count) => tr!(
- "Task Summary Sorted by Failed Tasks (Last {1}h)",
- count,
+ Some(_count) => tr!(
+ "Task Summary Sorted by Failed Tasks (Last {0}h)",
hours
),
None => tr!("Task Summary by Category (Last {0}h)", hours),
--
2.47.3
More information about the pdm-devel
mailing list