This commit is contained in:
2020-06-11 15:24:43 +00:00
parent 4a7223985c
commit f24e327e24
2 changed files with 22 additions and 2 deletions

View File

@@ -24,6 +24,10 @@ todo: Administration - License
todo: License testing (I know it's working when these things all pass)
ONBOARDING / BOOTSTRAPPING in ui called "Launch"
REVOKED KEY ROUTE
We issued a license for this dbid but then revoked it for non-payment
Display a link to the contact form with message "There is a problem with your license, contact support with this dbid: "
NO LICENSE MODE
Client should show the default manager account login info prefilled, no offer of sample trial accounts
@@ -46,8 +50,7 @@ todo: License testing (I know it's working when these things all pass)
We can release it for refetch and then it's all automatic once daily check (maybe more frequent when unlicensed?) or they can force it
STATE: NO KEY AND EXISTING REVOKED KEY IN RF
We issued a license for this dbid but then revoked it for non-payment
Display a link to the contact form with message "There is a problem with your license, contact support with this dbid: "
STATE: NO KEY AND DBID NOT IN ROCKFISH
User gets a form for requesting a trial

View File

@@ -21,6 +21,23 @@ function initNavPanel() {
let t = window.$gz.translation.get;
let role = window.$gz.role.AUTHORIZATION_ROLES;
//******* REVOKE
//Status 5 = revoked, they need to know and have a path to unrevocation
//only allow license and logout
if (window.$gz.store.state.globalSettings.licenseStatus == 5) {
addNavItem(
t("HelpLicense"),
"fa-ticket-alt",
"/adm-license",
[],
key++,
"license"
);
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout");
window.$gz.store.commit("setHomePage", "/adm-license");
return;
}
//******* LAUNCH
//if it's an empty db then only the launch page is available
if (window.$gz.store.state.globalSettings.licenseStatus == 0) {