fix view all users

This commit is contained in:
Bill Burke 2014-08-03 11:03:39 -04:00
parent 60a564dcfd
commit ae66b1b88e
2 changed files with 2 additions and 2 deletions

View file

@ -164,8 +164,8 @@ module.controller('UserListCtrl', function($scope, realm, User) {
}
$scope.searchQuery = function() {
console.log("query.search: " + $scope.query.search);
$scope.searchLoaded = false;
$scope.currentSearch = $scope.search;
$scope.users = User.query($scope.query, function() {
$scope.searchLoaded = true;

View file

@ -24,7 +24,7 @@
Icon: search
</button>
</div>
<span><span>or</span><button class="kc-link" ng-click="search = null; searchQuery()">View all users</button></span>
<span><span>or</span><button class="kc-link" ng-click="query.search = null; searchQuery()">View all users</button></span>
<div class="pull-right">
<a class="btn btn-primary" href="#/create/user/{{realm.realm}}">Add User</a>
</div>