ui: realms: add iconCls to menu entries

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 21:57:26 +02:00
parent 959df7bf26
commit da25c5ac41
2 changed files with 2 additions and 1 deletions

View File

@ -750,6 +750,7 @@ Ext.define('PVE.Utils', {
add: true,
tfa: false,
pwchange: false,
iconCls: 'pmx-itype-icon-openid-logo',
},
pam: {
name: 'Linux PAM',

View File

@ -93,9 +93,9 @@ Ext.define('PVE.dc.AuthView', {
let items = [];
for (const [authType, config] of Object.entries(PVE.Utils.authSchema)) {
if (!config.add) { continue; }
items.push({
text: config.name,
iconCls: 'fa fa-fw ' + (config.iconCls || 'fa-id-card-o'),
handler: () => me.openEditWindow(authType),
});
}