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:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user