ui: user view: use username/realm renderer from widget-toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 15:18:44 +02:00
parent c0e3df11d8
commit b8dcc6d307

View File

@ -152,14 +152,14 @@ Ext.define('PVE.dc.UserView', {
header: gettext('User name'),
width: 200,
sortable: true,
renderer: userid => Ext.String.htmlEncode(userid.match(/^(.+)(@[^@]+)$/)[1]),
renderer: Proxmox.Utils.render_username,
dataIndex: 'userid',
},
{
header: gettext('Realm'),
width: 100,
sortable: true,
renderer: userid => Ext.String.htmlEncode(userid.match(/@([^@]+)$/)[1]),
renderer: Proxmox.Utils.render_realm,
dataIndex: 'userid',
},
{