This commit is contained in:
@@ -20,11 +20,26 @@ function initNavPanel() {
|
|||||||
|
|
||||||
let t = window.$gz.translation.get;
|
let t = window.$gz.translation.get;
|
||||||
let role = window.$gz.role.AUTHORIZATION_ROLES;
|
let role = window.$gz.role.AUTHORIZATION_ROLES;
|
||||||
|
let licenseState = window.$gz.store.state.globalSettings.licenseStatus;
|
||||||
|
//******* License issue
|
||||||
|
//Status NONE, EXPIREDTRIAL, EXPIREDPURCHASE, REVOKED
|
||||||
|
//only show license and logout
|
||||||
|
/* public enum LicenseStatus
|
||||||
|
{
|
||||||
|
NONE = 0,
|
||||||
|
ActiveTrial = 1,
|
||||||
|
ExpiredTrial = 2,
|
||||||
|
ActivePurchased = 3,
|
||||||
|
ExpiredPurchased = 4,
|
||||||
|
Revoked = 5
|
||||||
|
} */
|
||||||
|
|
||||||
//******* REVOKE
|
if (
|
||||||
//Status 5 = revoked, they need to know and have a path to unrevocation
|
licenseState == 0 ||
|
||||||
//only allow license and logout
|
licenseState == 2 ||
|
||||||
if (window.$gz.store.state.globalSettings.licenseStatus == 5) {
|
licenseState == 4 ||
|
||||||
|
licenseState == 5
|
||||||
|
) {
|
||||||
addNavItem(
|
addNavItem(
|
||||||
t("HelpLicense"),
|
t("HelpLicense"),
|
||||||
"fa-ticket-alt",
|
"fa-ticket-alt",
|
||||||
@@ -38,14 +53,14 @@ function initNavPanel() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//******* 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.state.globalSettings.licenseStatus == 0) {
|
// if (window.$gz.store.state.globalSettings.licenseStatus == 0) {
|
||||||
addNavItem(t("Launch"), "fa-rocket", "/adm-launch", [], key++, "launch");
|
// addNavItem(t("Launch"), "fa-rocket", "/adm-launch", [], key++, "launch");
|
||||||
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout");
|
// addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout");
|
||||||
window.$gz.store.commit("setHomePage", "/adm-launch");
|
// window.$gz.store.commit("setHomePage", "/adm-launch");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
//****************** HOME
|
//****************** HOME
|
||||||
//Most users except ops and client logins
|
//Most users except ops and client logins
|
||||||
|
|||||||
Reference in New Issue
Block a user