compile user and login filter on the first time automatically, if a suggestion was provided

This commit is contained in:
Arthur Schiwon 2015-04-09 20:31:23 +02:00
parent ca9426308d
commit a8b831b018
4 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,7 @@ OCA = OCA || {};
'ldap_loginfilter_attributes'
]);
this.setTargetKey('ldap_login_filter');
this.runsOnRequest = true;
this.wizardMethod = 'getUserLoginFilter';
}

View File

@ -22,6 +22,7 @@ OCA = OCA || {};
'ldap_userfilter_objectclass'
]);
this.setTargetKey('ldap_userlist_filter');
this.runsOnRequest = true;
this.wizardMethod = 'getUserListFilter';
}

View File

@ -294,6 +294,11 @@ OCA = OCA || {};
onFeatureReceived: function(view, payload) {
if(payload.feature === view.getObjectClassItem().featureName) {
view.equipMultiSelect(view.getObjectClassItem().$element, payload.data);
if( !view.getFilterItem().$element.val()
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
) {
view.configModel.requestWizard(view.getFilterItem().keyName)
}
} else if (payload.feature === view.getGroupsItem().featureName) {
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {
// we need to fill the left list box, excluding the values

View File

@ -185,6 +185,9 @@ OCA = OCA || {};
*/
onActivate: function() {
this.considerFeatureRequests();
if(!this.managedItems.ldap_login_filter.$element.val()) {
this.configModel.requestWizard('ldap_login_filter');
}
},
/**