public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH proxmox-datacenter-manager] dashboard: Remove unused parameter in string
@ 2025-09-12  6:53 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2025-09-12  6:53 UTC (permalink / raw)
  To: pdm-devel

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@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



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-12  6:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-12  6:53 [pdm-devel] [PATCH proxmox-datacenter-manager] dashboard: Remove unused parameter in string Maximiliano Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal