From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 8DEE21FF179 for ; Wed, 7 Jan 2026 16:40:11 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1A99010E9A; Wed, 7 Jan 2026 16:41:26 +0100 (CET) From: Shan Shaji To: pve-devel@lists.proxmox.com Date: Wed, 7 Jan 2026 16:40:41 +0100 Message-ID: <20260107154041.46690-1-s.shaji@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1767800415294 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.104 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 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. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Subscription levels were rendered using their raw codes (e.g. "c") instead of human-readable labels (e.g. "Community"). This adds a mapping to display the correct names. Signed-off-by: Shan Shaji --- src/pages/page_dashboard.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/page_dashboard.rs b/src/pages/page_dashboard.rs index 106e05a..f637c63 100644 --- a/src/pages/page_dashboard.rs +++ b/src/pages/page_dashboard.rs @@ -18,7 +18,7 @@ use pve_api_types::{ use proxmox_yew_comp::layout::card::standard_card; use proxmox_yew_comp::layout::list_tile::{icon_list_tile, list_tile_usage}; use proxmox_yew_comp::layout::render_loaded_data; -use proxmox_yew_comp::{http_get, SubscriptionAlert}; +use proxmox_yew_comp::{SubscriptionAlert, http_get}; use crate::pages::ResourceFilter; use crate::widgets::TopNavBar; @@ -198,7 +198,13 @@ impl PvePageDashboard { let nodename = item.node.clone(); let subtitle = match item.level.as_deref() { Some("") | None => "no subscription", - Some(level) => level, + Some(level) => match level { + "c" => "Community", + "b" => "Basic", + "s" => "Standard", + "p" => "Premium", + _ => "-", + }, }; icon_list_tile( -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel