public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH yew-mobile-gui] fix: ui: display subscription level correctly under nodes
Date: Wed,  7 Jan 2026 16:40:41 +0100	[thread overview]
Message-ID: <20260107154041.46690-1-s.shaji@proxmox.com> (raw)

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


             reply	other threads:[~2026-01-07 15:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-07 15:40 Shan Shaji [this message]
2026-01-08  6:34 ` [pve-devel] applied: " Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260107154041.46690-1-s.shaji@proxmox.com \
    --to=s.shaji@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal