add pagination and filter panel to users view

This commit is contained in:
Johannes Zellner
2019-01-15 13:30:37 +01:00
parent a8b79055ef
commit 342538358d
3 changed files with 114 additions and 60 deletions
+9 -3
View File
@@ -862,11 +862,17 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.getUsers = function (callback) {
Client.prototype.getUsers = function (page, perPage, callback) {
if (typeof page === 'function') {
callback = page;
page = 1;
perPage = 1000;
}
var config = {
params: {
page: 1,
per_page: 1000
page: page,
per_page: perPage
}
};