diff --git a/src/views/users.js b/src/views/users.js index f1b20c717..6cc0d6ca1 100644 --- a/src/views/users.js +++ b/src/views/users.js @@ -248,7 +248,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio if (error) return console.error('Unable to update groups for user:', error); - refresh(); + refreshUsers(false); $('#userEditModal').modal('hide'); }); @@ -616,8 +616,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio }); } - function refreshUsers() { - $scope.userRefreshBusy = true; + function refreshUsers(showBusy) { + if (showBusy) $scope.userRefreshBusy = true; getUsers(function (error, result) { if (error) return console.error('Unable to get user listing.', error); @@ -639,7 +639,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio $scope.groupsById[result[i].id] = result[i]; } - refreshUsers(); + refreshUsers(true); }); }