fixes: U4-9900 Add support for selecting an editor sub view trough route params
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
function goBack() {
|
||||
$location.path("users/users/overview");
|
||||
$location.path("/users/users/overview").search("subview", "roles");
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
function goBack() {
|
||||
$location.path("users/users/overview");
|
||||
$location.path("/users/users/overview").search("subview", "users");
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user