Fixes to user search
This commit is contained in:
parent
f80522c6a5
commit
874727f927
1 changed files with 4 additions and 1 deletions
|
@ -119,12 +119,15 @@ module.controller('UserRoleMappingCtrl', function($scope, $http, realm, user, ro
|
|||
module.controller('UserListCtrl', function($scope, realm, User) {
|
||||
$scope.realm = realm;
|
||||
$scope.searchQuery = function() {
|
||||
$scope.currentSearch = $scope.search;
|
||||
$scope.searchLoaded = false;
|
||||
if ($scope.search) {
|
||||
$scope.currentSearch = $scope.search;
|
||||
$scope.users = User.query({ realm: realm.id, search : $scope.search }, function() {
|
||||
$scope.searchLoaded = true;
|
||||
});
|
||||
} else {
|
||||
$scope.currentSearch = null;
|
||||
$scope.users = null;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue