This commit is contained in:
2020-06-10 22:46:54 +00:00
parent 3036e44114
commit 76b8fbd0cb

View File

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