all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes
@ 2026-01-07 15:40 Shan Shaji
  2026-01-08  6:34 ` [pve-devel] applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Shan Shaji @ 2026-01-07 15:40 UTC (permalink / raw)
  To: 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 <s.shaji@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes
  2026-01-07 15:40 [pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes Shan Shaji
@ 2026-01-08  6:34 ` Dietmar Maurer
  0 siblings, 0 replies; 2+ messages in thread
From: Dietmar Maurer @ 2026-01-08  6:34 UTC (permalink / raw)
  To: Proxmox VE development discussion

applied
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-08  6:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-07 15:40 [pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes Shan Shaji
2026-01-08  6:34 ` [pve-devel] applied: " Dietmar Maurer

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