[pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes

Shan Shaji s.shaji at proxmox.com
Wed Jan 7 16:40:41 CET 2026


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 <s.shaji at proxmox.com>
---
 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





More information about the pve-devel mailing list