This commit is contained in:
@@ -55,7 +55,7 @@ function handleError(action, error, route, reject) {
|
||||
"notify-warning",
|
||||
window.$gz.locale.get("ErrorUserNotAuthorized")
|
||||
);
|
||||
router.push("/home-dashboard");
|
||||
router.push(window.$gz.store.state.homePage);
|
||||
return reject("[ErrorUserNotAuthorized]");
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,9 @@ export default function initialize() {
|
||||
key: key++
|
||||
});
|
||||
|
||||
//Set homePage in store to dashboard
|
||||
window.$gz.store.commit("setHomePage", "/home-dashboard");
|
||||
|
||||
//SEARCH
|
||||
if (
|
||||
window.$gz.role.hasRole([
|
||||
@@ -609,6 +612,12 @@ export default function initialize() {
|
||||
key: key++
|
||||
});
|
||||
|
||||
//Set home page if they don't already have the dashboard set above
|
||||
if (!window.$gz.store.state.homePage) {
|
||||
//Set homePage in store to Backup
|
||||
window.$gz.store.commit("setHomePage", "/ops-BACKUP");
|
||||
}
|
||||
|
||||
// JOBS
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("ServerJobs"),
|
||||
|
||||
Reference in New Issue
Block a user