diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 42457eaf..206e4b6d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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 diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 895beaa3..b90c7a97 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -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) {