public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] fix #8136: ui: user/group view: separate listed groups and users with a space
@ 2026-11-25  7:21 Michal Fox
  0 siblings, 0 replies; only message in thread
From: Michal Fox @ 2026-11-25  7:21 UTC (permalink / raw)
  To: pve-devel

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




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25  7:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  7:21 [PATCH manager] fix #8136: ui: user/group view: separate listed groups and users with a space Michal Fox

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