public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Michal Fox <me@dualfroz.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager] fix #8136: ui: user/group view: separate listed groups and users with a space
Date: Wed, 25 Nov 2026 07:21:51 +0000	[thread overview]
Message-ID: <20261125072151.7-1-me@dualfroz.com> (raw)

The API returns the groups of a user and the members of a group as a
comma-separated string, which the grids show as is, e.g. "admins,audit".
Add a space after each comma to make longer lists easier to read.

Signed-off-by: Michal Fox <me@dualfroz.com>
---
only checked with node --check, not clicked through in the gui

 www/manager6/dc/GroupView.js | 2 +-
 www/manager6/dc/UserView.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/dc/GroupView.js b/www/manager6/dc/GroupView.js
index 02f6f1a..975aac1 100644
--- a/www/manager6/dc/GroupView.js
+++ b/www/manager6/dc/GroupView.js
@@ -93,7 +93,7 @@ Ext.define('PVE.dc.GroupView', {
                     header: gettext('Users'),
                     sortable: false,
                     dataIndex: 'users',
-                    renderer: Ext.String.htmlEncode,
+                    renderer: (users) => Ext.htmlEncode(users?.replaceAll(',', ', ')),
                     flex: 1,
                 },
             ],
diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index 279ed5f..1a62139 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -220,7 +220,7 @@ Ext.define('PVE.dc.UserView', {
                 {
                     header: gettext('Groups'),
                     dataIndex: 'groups',
-                    renderer: Ext.htmlEncode,
+                    renderer: (groups) => Ext.htmlEncode(groups?.replaceAll(',', ', ')),
                     flex: 2,
                 },
                 {
-- 
2.43.0




                 reply	other threads:[~2026-11-25  7:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261125072151.7-1-me@dualfroz.com \
    --to=me@dualfroz.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