add go back button to edit role
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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()">← Back to roles</a>
|
||||
</umb-editor-sub-header-content-left>
|
||||
</umb-editor-sub-header>
|
||||
|
||||
</umb-editor-container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user