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
This commit is contained in:
Bjarke Berg
2021-11-03 14:22:25 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -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;
});

View File

@@ -6,14 +6,13 @@
</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