Ensure groups configure dialogs have all users available

This commit is contained in:
Johannes Zellner
2019-11-05 22:08:48 +01:00
parent 71f1304606
commit 7040bb01f4
3 changed files with 63 additions and 54 deletions

View File

@@ -27,6 +27,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.config = Client.getConfig();
$scope.userInfo = Client.getUserInfo();
$scope.allUsers = [];
$scope.userSearchString = '';
$scope.currentPage = 1;
$scope.pageItemCount = [
@@ -642,6 +644,13 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
Client.onReady(refresh);
Client.onReady(loadExternalLdapConfig);
Client.onReady(function () {
Client.getUsers(function (error, results) {
if (error) return console.error(error);
$scope.allUsers = results;
});
});
// setup all the dialog focus handling
['userAddModal', 'userRemoveModal', 'userEditModal', 'groupAddModal', 'groupEditModal', 'groupRemoveModal'].forEach(function (id) {