KEYCLOAK-19038 Reload user after being updated

This commit is contained in:
mposolda 2021-08-16 16:20:26 +02:00 committed by Marek Posolda
parent afa6e31d36
commit 3e0f8aed30

View file

@ -385,7 +385,7 @@ module.controller('UserDetailCtrl', function($scope, realm, user, BruteForceUser
Components,
UserImpersonation, RequiredActions,
UserStorageOperations,
$location, $http, Dialog, Notifications, $translate, Groups) {
$location, $http, Dialog, Notifications, $translate, $route, Groups) {
$scope.realm = realm;
$scope.create = !user.id;
$scope.editUsername = $scope.create || $scope.realm.editUsernameAllowed;
@ -488,10 +488,8 @@ module.controller('UserDetailCtrl', function($scope, realm, user, BruteForceUser
realm: realm.realm,
userId: $scope.user.id
}, $scope.user, function () {
$scope.changed = false;
convertAttributeValuesToString($scope.user);
user = angular.copy($scope.user);
Notifications.success($translate.instant('user.edit.success'));
$route.reload();
});
}
};