add go back button to edit role

This commit is contained in:
Mads Rasmussen
2017-05-11 09:47:35 +02:00
parent e5240575bd
commit 536be45bbf
2 changed files with 12 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
(function () {
"use strict";
function UserRoleEditController($scope, $timeout, usersResource) {
function UserRoleEditController($scope, $timeout, $location, usersResource) {
var vm = this;
@@ -9,6 +9,8 @@
vm.page = {};
vm.userRole = {};
vm.goBack = goBack;
function init() {
vm.loading = true;
@@ -24,6 +26,10 @@
}, 500);
}
function goBack() {
$location.path("users/usersV2/overview");
}
init();

View File

@@ -15,7 +15,11 @@
<umb-editor-container>
Edit role here
<umb-editor-sub-header>
<umb-editor-sub-header-content-left>
<a class="umb-package-details__back-link" href="" ng-click="vm.goBack()">&larr; Back to roles</a>
</umb-editor-sub-header-content-left>
</umb-editor-sub-header>
</umb-editor-container>