Skip to content

Commit 1af1506

Browse files
authored
Merge pull request #11524 from umbraco/v9/bugfix/dont-reload-page-with-edit-user-button
v9: don't reload page when navigating to edit user
2 parents 3536863 + 439e1b5 commit 1af1506

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.controller.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ angular.module("umbraco")
182182
$scope.changePasswordModel.value.confirm = "";
183183
}
184184

185+
$scope.editUser = function() {
186+
$location
187+
.path('/users/users/user/' + $scope.user.id);
188+
$scope.model.close();
189+
}
190+
185191
dashboardResource.getDashboard("user-dialog").then(function (dashboard) {
186192
$scope.dashboard = dashboard;
187193
});

src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ <h5>
66
</h5>
77

88
<umb-button
9-
action="model.close()"
9+
action="editUser()"
1010
alias="editUser"
1111
button-style="action"
12-
href="#/users/users/user/{{user.id}}"
1312
label="Edit"
1413
label-key="general_edit"
1514
ng-if="canEditProfile"
16-
type="link">
15+
type="button">
1716
</umb-button>
1817

1918
<umb-button

0 commit comments

Comments
 (0)