From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 0144E1FF178 for ; Mon, 1 Dec 2025 18:45:52 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CCA6B23A1A; Mon, 1 Dec 2025 18:46:15 +0100 (CET) From: Stefan Hanreich To: pdm-devel@lists.proxmox.com Date: Mon, 1 Dec 2025 18:46:11 +0100 Message-ID: <20251201174612.55112-1-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.174 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pdm-devel] [PATCH proxmox-datacenter-manager 1/1] ui: status: properly render icon for sdn resources X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" With the addition of fabrics, there are now several distinct types of network resources. With this patch, the search result grid now renders the correct icon for network resources, instead of showing the zone icon for every networking resource. Signed-off-by: Stefan Hanreich --- ui/src/pve/utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/pve/utils.rs b/ui/src/pve/utils.rs index 547dab9..a52689e 100644 --- a/ui/src/pve/utils.rs +++ b/ui/src/pve/utils.rs @@ -91,9 +91,9 @@ pub fn render_node_status_icon(node: &PveNodeResource) -> Container { /// Renders the status icon for a PveSdnZone pub fn render_sdn_status_icon(network: &PveNetworkResource) -> Container { - let sdn_status = match network { - PveNetworkResource::Zone(zone) => zone.status(), - PveNetworkResource::Fabric(fabric) => fabric.status(), + let (sdn_status, icon) = match network { + PveNetworkResource::Zone(zone) => (zone.status(), "th"), + PveNetworkResource::Fabric(fabric) => (fabric.status(), "road"), }; let extra = match sdn_status { @@ -104,7 +104,7 @@ pub fn render_sdn_status_icon(network: &PveNetworkResource) -> Container { Container::new() .class("pdm-type-icon") - .with_child(Fa::new("th").fixed_width()) + .with_child(Fa::new(icon).fixed_width()) .with_child(Fa::from(extra).fixed_width().class("status-icon")) } -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel