Add ability to trigger external ldap syncer task

This commit is contained in:
Johannes Zellner
2019-08-29 17:22:39 +02:00
parent 8c44e558a8
commit 426d2aab09
3 changed files with 23 additions and 0 deletions

View File

@@ -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 = {};