ui: auth domains: openID: make 'username-claim' display-edit field

while we cannot allow editing it after realm creation it is still
interesting to know to which value it was set.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 15:26:55 +02:00
parent c5be8d39c9
commit c2cd0c9eb3

View File

@ -41,13 +41,14 @@ Ext.define('PVE.panel.OpenIDInputPanel', {
value: 0,
deleteEmpty: !me.isCreate,
},
];
if (me.isCreate) {
me.column2.push({
{
xtype: 'pmxDisplayEditField',
editConfig: {
xtype: 'proxmoxKVComboBox',
},
editable: me.isCreate,
name: 'username-claim',
value: '__default__',
value: me.isCreate ? '__default__' : Proxmox.Utils.defaultText,
deleteEmpty: !me.isCreate,
fieldLabel: gettext('Username Claim'),
comboItems: [
@ -56,8 +57,8 @@ Ext.define('PVE.panel.OpenIDInputPanel', {
['username', 'username'],
['email', 'email'],
],
});
}
},
];
me.callParent();
},