Skip to content

Commit 379b281

Browse files
committed
Fix bug activate user from dashboard
* When activationg a user from the dashboard the activated
1 parent e75f17a commit 379b281

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/app/admin/admin.controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function AdminController($scope, $routeParams, $location, $filter, UserService,
9191

9292
user.active = true;
9393
UserService.updateUser(user.id, user, function(data) {
94-
$scope.inactiveUsers = _.reject($scope.inactiveUsers, function(u) { return u.id === data.id; });
94+
$scope.$apply(function() {
95+
$scope.inactiveUsers = _.reject($scope.inactiveUsers, function(u) { return u.id === data.id; });
96+
});
9597
});
9698
};
9799

0 commit comments

Comments
 (0)