Skip to content

Commit 4876108

Browse files
author
Nikolaj Geisle
committed
change button to user editUser function
1 parent e9ae567 commit 4876108

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ <h5><localize key="user_yourProfile"></localize></h5>
1111

1212
<umb-button
1313
alias="editUser"
14-
type="link"
15-
href="#/users/users/user/{{user.id}}"
16-
action="model.close()"
14+
type="button"
15+
action="editUser()"
1716
button-style="action"
1817
label="Edit"
1918
label-key="general_edit"
@@ -75,7 +74,7 @@ <h5>
7574
<localize key="defaultdialogs_unLinkYour">Un-link your</localize>&nbsp;{{login.caption}}&nbsp;<localize key="defaultdialogs_account">account</localize>
7675
</button>
7776
</div>
78-
77+
7978
</div>
8079

8180
</div>

0 commit comments

Comments
 (0)