public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH datacenter-manager] ui: dashboard: sdn: show unknown zones too if they exist
@ 2025-09-11  9:58 Dominik Csapak
  0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2025-09-11  9:58 UTC (permalink / raw)
  To: pdm-devel

by adding the row but filtering it out when count is 0, similar to how
we do it in the guest panel.

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

diff --git a/ui/src/dashboard/sdn_zone_panel.rs b/ui/src/dashboard/sdn_zone_panel.rs
index bcac36b..0e26fa9 100644
--- a/ui/src/dashboard/sdn_zone_panel.rs
+++ b/ui/src/dashboard/sdn_zone_panel.rs
@@ -87,6 +87,7 @@ impl yew::Component for SdnZonePanelComponent {
         let data = vec![
             StatusRow::State(SdnStatus::Available, status.available),
             StatusRow::State(SdnStatus::Error, status.error),
+            StatusRow::State(SdnStatus::Unknown, status.unknown),
             StatusRow::All(status.available + status.error + status.unknown),
         ];
 
@@ -111,6 +112,7 @@ fn create_list_tile(
     status_row: StatusRow,
 ) -> Option<ListTile> {
     let (icon, status, count) = match status_row {
+        StatusRow::State(SdnStatus::Unknown, 0) => return None,
         StatusRow::State(sdn_status, count) => (status_row.icon(), Some(sdn_status), count),
         StatusRow::All(count) => (status_row.icon(), None, count),
     };
-- 
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-11  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-11  9:58 [pdm-devel] [PATCH datacenter-manager] ui: dashboard: sdn: show unknown zones too if they exist Dominik Csapak

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