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;
|
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() {
|
||||||
|
|
Loading…
Reference in a new issue