Add an explicit Client.getAllUsers function

This commit is contained in:
Johannes Zellner
2022-02-14 14:55:04 +01:00
parent b4bbdda730
commit 2ec4ad934d
5 changed files with 34 additions and 12 deletions

View File

@@ -203,7 +203,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
// supported types are 'json' and 'csv'
$scope.userExport = function (type) {
Client.getUsers(function (error, result) {
Client.getAllUsers(function (error, result) {
if (error) {
Client.error('Failed to list users. Full error in the webinspector.');
return console.error('Failed to list users.', error);
@@ -1104,7 +1104,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
};
function refreshAllUsers() { // this loads all users on Cloudron, not just current page
Client.getUsers(function (error, results) {
Client.getAllUsers(function (error, results) {
if (error) return console.error(error);
$scope.allUsers = results;