From 0e1fa66f75ace04315f00c6b88b8c2c5643fa372 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 18 Jul 2023 13:57:07 +0200 Subject: [PATCH] auth: ldap: openid: use proxmoxtextfield for comment The regular `textfield` does not support the `deleteEmpty` setting. Thus, if no comment was entered the configuration would still end up with an empty `comment` key: ldap: foo server .... bind-dn ... comment Fixed by switching over to `proxmoxtextfield`, which properly deletes empty keys. Signed-off-by: Lukas Wagner --- src/window/AuthEditLDAP.js | 2 +- src/window/AuthEditOpenId.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/AuthEditLDAP.js b/src/window/AuthEditLDAP.js index 6aafb98..eb9700a 100644 --- a/src/window/AuthEditLDAP.js +++ b/src/window/AuthEditLDAP.js @@ -187,7 +187,7 @@ Ext.define('Proxmox.panel.LDAPInputPanel', { columnB: [ { - xtype: 'textfield', + xtype: 'proxmoxtextfield', name: 'comment', fieldLabel: gettext('Comment'), cbind: { diff --git a/src/window/AuthEditOpenId.js b/src/window/AuthEditOpenId.js index 52a7521..ca84958 100644 --- a/src/window/AuthEditOpenId.js +++ b/src/window/AuthEditOpenId.js @@ -112,7 +112,7 @@ Ext.define('Proxmox.panel.OpenIDInputPanel', { columnB: [ { - xtype: 'textfield', + xtype: 'proxmoxtextfield', name: 'comment', fieldLabel: gettext('Comment'), cbind: {