ui: UserView: render name as 'Firstname Lastname'
instead of only the firstname Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c0026563b0
commit
0a274ab0a0
@ -76,6 +76,17 @@ Ext.define('PBS.config.UserView', {
|
||||
}).show();
|
||||
},
|
||||
|
||||
renderName: function(val, cell, rec) {
|
||||
let name = [];
|
||||
if (rec.data.firstname) {
|
||||
name.push(rec.data.firstname);
|
||||
}
|
||||
if (rec.data.lastname) {
|
||||
name.push(rec.data.lastname);
|
||||
}
|
||||
return name.join(' ');
|
||||
},
|
||||
|
||||
renderUsername: function(userid) {
|
||||
return Ext.String.htmlEncode(userid.match(/^(.+)@([^@]+)$/)[1]);
|
||||
},
|
||||
@ -181,6 +192,7 @@ Ext.define('PBS.config.UserView', {
|
||||
width: 150,
|
||||
sortable: true,
|
||||
dataIndex: 'firstname',
|
||||
renderer: 'renderName',
|
||||
},
|
||||
{
|
||||
header: gettext('Comment'),
|
||||
|
Loading…
Reference in New Issue
Block a user