[pdm-devel] [PATCH datacenter-manager 1/3] ui: views: node panel: improve wording for pbs nodes and defuse icon

Dominik Csapak d.csapak at proxmox.com
Wed Dec 3 09:23:26 CET 2025


using a warning icon instead of an error one defuses this error a bit.
Also include the the total amount of pbs nodes in the error.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 ui/src/dashboard/node_status_panel.rs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ui/src/dashboard/node_status_panel.rs b/ui/src/dashboard/node_status_panel.rs
index 1c37c8e3..a93e03a7 100644
--- a/ui/src/dashboard/node_status_panel.rs
+++ b/ui/src/dashboard/node_status_panel.rs
@@ -141,8 +141,11 @@ fn map_status(
                 tr!("{0} of an unknown number of nodes online", online),
             ),
             Some(RemoteType::Pbs) => (
-                Status::Error.into(),
-                tr!("{0} remotes failed", failed_remotes),
+                Status::Warning.into(),
+                tr!(
+                    "One of {0} nodes online" | "{n} of {0} nodes online" % *online,
+                    online + failed_remotes as u64
+                ),
             ),
         },
         NodeStatusCount { online, .. } => (Status::Success.into(), tr!("{0} nodes online", online)),
-- 
2.47.3





More information about the pdm-devel mailing list