Skip to content

Commit

Permalink
Merge pull request #11524 from umbraco/v9/bugfix/dont-reload-page-wit…
Browse files Browse the repository at this point in the history
…h-edit-user-button

v9: don't reload page when navigating to edit user
  • Loading branch information
bergmania authored Nov 3, 2021
2 parents 3536863 + 439e1b5 commit 1af1506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ angular.module("umbraco")
$scope.changePasswordModel.value.confirm = "";
}

$scope.editUser = function() {
$location
.path('/users/users/user/' + $scope.user.id);
$scope.model.close();
}

dashboardResource.getDashboard("user-dialog").then(function (dashboard) {
$scope.dashboard = dashboard;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ <h5>
</h5>

<umb-button
action="model.close()"
action="editUser()"
alias="editUser"
button-style="action"
href="#/users/users/user/{{user.id}}"
label="Edit"
label-key="general_edit"
ng-if="canEditProfile"
type="link">
type="button">
</umb-button>

<umb-button
Expand Down

0 comments on commit 1af1506

Please sign in to comment.