commit
f80811a065
1 changed files with 3 additions and 2 deletions
|
@ -21,12 +21,12 @@ module.controller('GroupListCtrl', function($scope, $route, $q, realm, Groups, G
|
|||
var first = ($scope.currentPage * $scope.pageSize) - $scope.pageSize;
|
||||
console.log('first:' + first);
|
||||
var queryParams = {
|
||||
realm : realm.id,
|
||||
realm : realm.realm,
|
||||
first : first,
|
||||
max : $scope.pageSize
|
||||
};
|
||||
var countParams = {
|
||||
realm : realm.id,
|
||||
realm : realm.realm,
|
||||
top : 'true'
|
||||
};
|
||||
|
||||
|
@ -54,6 +54,7 @@ module.controller('GroupListCtrl', function($scope, $route, $q, realm, Groups, G
|
|||
});
|
||||
|
||||
var promiseCount = $q.defer();
|
||||
console.log('countParams: realm[' + countParams.realm);
|
||||
GroupsCount.query(countParams, function(entry) {
|
||||
promiseCount.resolve(entry);
|
||||
}, function() {
|
||||
|
|
Loading…
Reference in a new issue