all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve_flutter_frontend 1/2] fix: ui: show empty message if there are no tokens or groups
Date: Wed, 22 Apr 2026 10:55:16 +0200	[thread overview]
Message-ID: <20260422085517.71782-2-s.shaji@proxmox.com> (raw)
In-Reply-To: <20260422085517.71782-1-s.shaji@proxmox.com>

The tokens and groups tab bar view widgets were showing a blank page.
This was flagged by play console as a broken functionality. To fix the
issue if there are no groups or tokens show an empty message in body of
the widgets.

Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
 lib/pages/main_layout_slim.dart | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/lib/pages/main_layout_slim.dart b/lib/pages/main_layout_slim.dart
index 4229ef4..c65f744 100644
--- a/lib/pages/main_layout_slim.dart
+++ b/lib/pages/main_layout_slim.dart
@@ -936,6 +936,14 @@ class MobileAccessManagement extends StatelessWidget {
                             : null,
                       );
                     }),
+                if (aState.tokens.isEmpty)
+                  Align(
+                    child: Text(
+                      "No Tokens",
+                      style: Theme.of(context).textTheme.bodyLarge,
+                    ),
+                  )
+                else
                 ListView.builder(
                     itemCount: aState.tokens.length,
                     itemBuilder: (context, index) {
@@ -951,6 +959,14 @@ class MobileAccessManagement extends StatelessWidget {
                         subtitle: Text('Expires: $expireDate'),
                       );
                     }),
+                if (aState.groups.isEmpty)
+                  Align(
+                    child: Text(
+                      "No Groups",
+                      style: Theme.of(context).textTheme.bodyLarge,
+                    ),
+                  )
+                else
                 ListView.builder(
                     itemCount: aState.groups.length,
                     itemBuilder: (context, index) {
-- 
2.47.3





  reply	other threads:[~2026-04-22  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-22  8:55 [PATCH pve_flutter_frontend 0/2] fix: broken functionality flagged by google play console Shan Shaji
2026-04-22  8:55 ` Shan Shaji [this message]
2026-04-22  8:55 ` [PATCH pve_flutter_frontend 2/2] cleanup: run `dart format` to fix formatting of the main_layout file Shan Shaji
2026-04-22  9:04 ` applied: [PATCH pve_flutter_frontend 0/2] fix: broken functionality flagged by google play console Dominik Csapak

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=20260422085517.71782-2-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 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