all lists on 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
  2025-09-12  8:32 ` [pdm-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

end of thread, other threads:[~2025-09-12  8:32 UTC | newest]

Thread overview: 2+ messages (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
2025-09-12  8:32 ` [pdm-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal