Fix MySQL issue and enable sorting by description
This commit is contained in:
parent
a53a0a44a9
commit
8a492a9d56
2 changed files with 6 additions and 5 deletions
|
@ -99,11 +99,13 @@ function RepoListCtrl($scope, Restangular, UserService, ApiService) {
|
|||
'sort': true,
|
||||
'limit': 10,
|
||||
'page': $scope.page,
|
||||
'count': true
|
||||
'count': $scope.page == 1
|
||||
};
|
||||
|
||||
$scope.public_repositories = ApiService.listReposAsResource().withOptions(options).get(function(resp) {
|
||||
$scope.publicPageCount = Math.ceil(resp.count / 10);
|
||||
if (resp.count) {
|
||||
$scope.publicPageCount = Math.ceil(resp.count / 10);
|
||||
}
|
||||
return resp.repositories;
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue