]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/LDAPGroupSelector.js
user view: disable unlock TFA button initially
[pmg-gui.git] / js / LDAPGroupSelector.js
index 99fe7467b0980148ab6ab87ee569bfd156ad4405..0698567f4e970c1bfb3feb4ebf81f9d17af208b6 100644 (file)
@@ -3,18 +3,18 @@ Ext.define('PMG.LDAPGroupSelector', {
     alias: 'widget.pmgLDAPGroupSelector',
 
     profile: undefined,
-    
+
     queryMode: 'local',
 
     store: {
-       fields: [ 'dn' ],
+       fields: ['dn'],
        filterOnLoad: true,
        sorters: [
            {
-               property : 'dn',
-               direction: 'ASC'
-           }
-       ]
+               property: 'dn',
+               direction: 'ASC',
+           },
+       ],
     },
 
     valueField: 'dn',
@@ -35,20 +35,20 @@ Ext.define('PMG.LDAPGroupSelector', {
 
        me.store.setProxy({
            type: 'proxmox',
-           url: '/api2/json/config/ldap/' + me.profile + '/groups'
+           url: '/api2/json/config/ldap/' + me.profile + '/groups',
        });
 
        me.store.load();
     },
-    
+
     initComponent: function() {
        var me = this;
 
        me.callParent();
 
        if (me.profile !== undefined) {
-           me.setProfile(profile, true);
+           me.setProfile(me.profile, true);
        }
-    }
+    },
 });