alias: 'widget.pmgLDAPUserSelector',
profile: undefined,
-
+
store: {
- fields: [ 'account', 'pmail', 'dn' ],
+ fields: ['account', 'pmail', 'dn'],
filterOnLoad: true,
sorters: [
{
- property : 'account',
- direction: 'ASC'
- }
- ]
+ property: 'account',
+ direction: 'ASC',
+ },
+ ],
},
valueField: 'account',
header: gettext('Account'),
dataIndex: 'account',
hideable: false,
- width: 100
+ width: 100,
},
{
- header: gettext('EMail'),
+ header: gettext('E-Mail'),
dataIndex: 'pmail',
- width: 150
+ width: 150,
},
{
header: 'DN',
dataIndex: 'dn',
- width: 200
- }
- ]
+ width: 200,
+ },
+ ],
},
-
+
setProfile: function(profile, force) {
var me = this;
me.store.setProxy({
type: 'proxmox',
- url: '/api2/json/config/ldap/' + me.profile + '/users'
+ url: '/api2/json/config/ldap/' + me.profile + '/users',
});
me.store.load();
},
-
+
initComponent: function() {
var me = this;
if (me.profile !== undefined) {
me.setProfile(me.profile, true);
}
- }
+ },
});