Add user state filter
pending layout fix if decided where it should be the toolbar is getting crowded
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user