This commit is contained in:
2020-01-06 18:59:42 +00:00
parent f47943f1f3
commit 8955a56149
4 changed files with 16 additions and 2 deletions

View File

@@ -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]");
}

View File

@@ -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"),