[pve-devel] [PATCH v3 manager 5/9] www: add 'users' columns to Groups model
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Jan 21 13:54:25 CET 2020
it's useful information that now gets returned by the API, so might as
well display it.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
www/manager6/dc/GroupView.js | 6 ++++++
www/manager6/form/GroupSelector.js | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/www/manager6/dc/GroupView.js b/www/manager6/dc/GroupView.js
index dc863cc6..c40c5ba1 100644
--- a/www/manager6/dc/GroupView.js
+++ b/www/manager6/dc/GroupView.js
@@ -87,6 +87,12 @@ Ext.define('PVE.dc.GroupView', {
renderer: Ext.String.htmlEncode,
dataIndex: 'comment',
flex: 1
+ },
+ {
+ header: gettext('Users'),
+ sortable: false,
+ dataIndex: 'users',
+ flex: 1
}
],
listeners: {
diff --git a/www/manager6/form/GroupSelector.js b/www/manager6/form/GroupSelector.js
index 75e874fe..3d4776ee 100644
--- a/www/manager6/form/GroupSelector.js
+++ b/www/manager6/form/GroupSelector.js
@@ -1,6 +1,6 @@
Ext.define('pve-groups', {
extend: 'Ext.data.Model',
- fields: [ 'groupid', 'comment' ],
+ fields: [ 'groupid', 'comment', 'users' ],
proxy: {
type: 'proxmox',
url: "/api2/json/access/groups"
@@ -30,6 +30,12 @@ Ext.define('PVE.form.GroupSelector', {
dataIndex: 'comment',
renderer: Ext.String.htmlEncode,
flex: 1
+ },
+ {
+ header: gettext('Users'),
+ sortable: false,
+ dataIndex: 'users',
+ flex: 1
}
]
},
--
2.20.1
More information about the pve-devel
mailing list