Add user state filter

pending layout fix if decided where it should be
the toolbar is getting crowded
This commit is contained in:
Johannes Zellner
2022-02-07 16:56:44 +01:00
parent f55c22bdb9
commit b9a76aa6b8
3 changed files with 15 additions and 2 deletions

View File

@@ -1386,7 +1386,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getUsers = function (search, page, perPage, callback) {
Client.prototype.getUsers = function (search, active, page, perPage, callback) {
if (typeof search === 'function') {
callback = search;
search = '';
@@ -1402,6 +1402,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
if (search) config.params.search = search;
if (active !== null) config.params.active = active ? 'true' : 'false';
get('/api/v1/users', config, function (error, data, status) {
if (error) return callback(error);