Merge pull request #4841 from patriot1burke/master

KEYCLOAK-5923
This commit is contained in:
Bill Burke 2017-12-12 16:07:52 -05:00 committed by GitHub
commit f80811a065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,12 +21,12 @@ module.controller('GroupListCtrl', function($scope, $route, $q, realm, Groups, G
var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize; var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize;
console.log('first:' + first); console.log('first:' + first);
var queryParams = { var queryParams = {
realm : realm.id, realm : realm.realm,
first : first, first : first,
max : $scope.pageSize max : $scope.pageSize
}; };
var countParams = { var countParams = {
realm : realm.id, realm : realm.realm,
top : 'true' top : 'true'
}; };
@ -54,6 +54,7 @@ module.controller('GroupListCtrl', function($scope, $route, $q, realm, Groups, G
}); });
var promiseCount = $q.defer(); var promiseCount = $q.defer();
console.log('countParams: realm[' + countParams.realm);
GroupsCount.query(countParams, function(entry) { GroupsCount.query(countParams, function(entry) {
promiseCount.resolve(entry); promiseCount.resolve(entry);
}, function() { }, function() {