]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/LDAPConfig.js
fix #2533: quarantine: add overflowHandler to the preview panel
[pmg-gui.git] / js / LDAPConfig.js
index 0a4937eabfbfcdefa87c655a779a1e8161cbbf1c..0a114ff4f50080422f84369925904713230268f0 100644 (file)
@@ -28,6 +28,11 @@ Ext.define('PMG.LDAPInputPanel', {
        values.disable = values.enable ? 0 : 1;
        delete values.enable;
 
+       // do not send empty password
+       if (values.bindpw === '') {
+           delete values.bindpw;
+       }
+
        return values;
     },
 
@@ -103,6 +108,7 @@ Ext.define('PMG.LDAPInputPanel', {
                xtype: 'textfield',
                inputType: 'password',
                allowBlank: true,
+               emptyText: gettext('Unchanged'),
                name: 'bindpw',
                fieldLabel: gettext('Password'),
            },
@@ -480,9 +486,9 @@ Ext.define('PMG.LDAPConfigGrid', {
 
 
        reload: function() {
-           var me = this.getView();
-           me.getStore().load();
-           me.fireEvent('load', me);
+           let view = this.getView();
+           view.getStore().load();
+           view.fireEvent('load', view);
        },
 
        sync: function() {
@@ -512,7 +518,7 @@ Ext.define('PMG.LDAPConfigGrid', {
        model: 'pmg-ldap-config',
        sorters: [{
            property: 'profile',
-           order: 'DESC',
+           direction: 'ASC',
        }],
     },