Add ability to trigger external ldap syncer task
This commit is contained in:
@@ -417,6 +417,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
busy: false,
|
||||
error: {},
|
||||
success: false,
|
||||
syncBusy: false,
|
||||
|
||||
// fields
|
||||
enabled: false,
|
||||
@@ -426,6 +427,18 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
bindDn: '',
|
||||
bindPassword: '',
|
||||
|
||||
sync: function () {
|
||||
$scope.externalLdap.syncBusy = true;
|
||||
Client.startExternalLdapSync(function (error, result) {
|
||||
if (error) {
|
||||
$scope.externalLdap.syncBusy = false;
|
||||
console.error('Unable to start ldap syncer task.', error);
|
||||
} else {
|
||||
console.log(result);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
$scope.externalLdap.busy = true;
|
||||
$scope.externalLdap.error = {};
|
||||
|
||||
Reference in New Issue
Block a user