]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/LDAPConfig.js
dashboard: implement columns browser setting
[pmg-gui.git] / js / LDAPConfig.js
index 19ec702efb625befdb3e6b894d9b238da38355f9..c2f391727969190df95b7d6184e3d5a4e2eacf61 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'),
            },
@@ -512,26 +518,28 @@ Ext.define('PMG.LDAPConfigGrid', {
        model: 'pmg-ldap-config',
        sorters: [{
            property: 'profile',
-           order: 'DESC',
+           direction: 'ASC',
        }],
     },
 
     tbar: [
+       {
+           text: gettext('Create'),
+           handler: 'newProfile',
+       },
+       '-',
        {
            xtype: 'proxmoxButton',
            text: gettext('Edit'),
            disabled: true,
            handler: 'run_editor',
        },
-       {
-           text: gettext('Create'),
-           handler: 'newProfile',
-       },
        {
            xtype: 'proxmoxStdRemoveButton',
            baseurl: '/config/ldap',
            callback: 'reload',
        },
+       '-',
        {
            xtype: 'proxmoxButton',
            text: gettext('Synchronize'),