fixes: U4-9900 Add support for selecting an editor sub view trough route params

This commit is contained in:
Mads Rasmussen
2017-05-16 13:14:29 +02:00
parent 225f657154
commit 73d7915fb5
3 changed files with 8 additions and 6 deletions

View File

@@ -1,9 +1,10 @@
(function () {
"use strict";
function UsersOverviewController($scope) {
function UsersOverviewController($scope, $location) {
var vm = this;
var usersUri = $location.search().subview;
vm.page = {};
vm.page.name = "User Management";
@@ -12,17 +13,18 @@
"name": "Users",
"icon": "icon-user",
"view": "views/users/views/users/users.html",
"active": true
"active": !usersUri || usersUri === "users"
},
{
"name": "Roles",
"icon": "icon-users",
"view": "views/users/views/roles/roles.html"
"view": "views/users/views/roles/roles.html",
"active": usersUri === "roles"
}
];
function init() {
}
init();

View File

@@ -28,7 +28,7 @@
}
function goBack() {
$location.path("users/users/overview");
$location.path("/users/users/overview").search("subview", "roles");
}
init();

View File

@@ -28,7 +28,7 @@
}
function goBack() {
$location.path("users/users/overview");
$location.path("/users/users/overview").search("subview", "users");
}
init();