fix #5379: window: AuthEdit{LDAP, OpenId}: add 'Default realm' checkbox

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2024-08-23 13:07:27 +02:00 committed by Thomas Lamprecht
parent 6fe81f0cef
commit 0f8d38b5de
2 changed files with 26 additions and 1 deletions

View File

@ -82,6 +82,19 @@ Ext.define('Proxmox.panel.LDAPInputPanel', {
fieldLabel: gettext('Realm'),
allowBlank: false,
},
{
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Default realm'),
name: 'default',
value: 0,
cbind: {
deleteEmpty: '{!isCreate}',
},
autoEl: {
tag: 'div',
'data-qtip': gettext('Set realm as default for login'),
},
},
{
xtype: 'proxmoxtextfield',
fieldLabel: gettext('Base Domain Name'),
@ -216,7 +229,6 @@ Ext.define('Proxmox.panel.LDAPInputPanel', {
},
},
],
});

View File

@ -35,6 +35,19 @@ Ext.define('Proxmox.panel.OpenIDInputPanel', {
fieldLabel: gettext('Realm'),
allowBlank: false,
},
{
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Default realm'),
name: 'default',
value: 0,
cbind: {
deleteEmpty: '{!isCreate}',
},
autoEl: {
tag: 'div',
'data-qtip': gettext('Set realm as default for login'),
},
},
{
xtype: 'proxmoxtextfield',
fieldLabel: gettext('Client ID'),