This commit is contained in:
@@ -23,9 +23,10 @@ function initNavPanal() {
|
|||||||
|
|
||||||
//******* LAUNCH
|
//******* LAUNCH
|
||||||
//if it's an empty db then only the launch page is available
|
//if it's an empty db then only the launch page is available
|
||||||
if (window.$gz.store.globalSettings.licenseStatus == 0) {
|
if (window.$gz.store.state.globalSettings.licenseStatus == 0) {
|
||||||
addNavItem(t("Launch"), "fa-rocket", "/launch", [], key++, "launch");
|
addNavItem(t("Launch"), "fa-rocket", "/adm-launch", [], key++, "launch");
|
||||||
window.$gz.store.commit("setHomePage", "/launch");
|
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout");
|
||||||
|
window.$gz.store.commit("setHomePage", "/adm-launch");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -768,7 +769,7 @@ function getUserOptions() {
|
|||||||
// Initialize the app
|
// Initialize the app
|
||||||
// on change of authentication status
|
// on change of authentication status
|
||||||
export default function initialize() {
|
export default function initialize() {
|
||||||
return new Promise(async function(resolve) {
|
return new Promise(async function(resolve, reject) {
|
||||||
if (!window.$gz.store.state.authenticated) {
|
if (!window.$gz.store.state.authenticated) {
|
||||||
throw "initialize: Error, called but user not authenticated!";
|
throw "initialize: Error, called but user not authenticated!";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user