This commit is contained in:
2020-06-10 23:51:25 +00:00
parent 76b8fbd0cb
commit e0359d5de8
8 changed files with 109 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ function addNavItem(title, icon, route, navItems, key, testid) {
});
}
function initNavPanal() {
function initNavPanel() {
let key = 0;
let sub = [];
@@ -777,8 +777,18 @@ export default function initialize() {
await window.$gz.translation.cacheTranslations(
window.$gz.translation.coreKeys
);
await initNavPanal();
initNavPanel();
await getUserOptions();
//check for known password and a purchased licensed mode
if (
window.$gz.store.state.knownPassword &&
(window.$gz.store.state.globalSettings.licenseStatus == 3 || //ActivePurchased = 3,
window.$gz.store.state.globalSettings.licenseStatus == 4) // ExpiredPurchased = 4
) {
window.$gz.store.commit("setHomePage", "/home-password");
}
resolve();
} catch (err) {
reject(err);