diff --git a/ayanova/src/views/adm-license.vue b/ayanova/src/views/adm-license.vue index 00287f8e..032ffdbc 100644 --- a/ayanova/src/views/adm-license.vue +++ b/ayanova/src/views/adm-license.vue @@ -71,21 +71,16 @@ > - {{ $ay.t("SendEvaluationRequest") }} - + {{ $ay.t("CheckForLicense") }} - @@ -95,8 +90,19 @@ $ay.t("PurchaseLicense") }} - Takes to purchase page Purchase page has link to pricing and - help regarding licensing + + + {{ $ay.t("PurchaseLicense") }} + + {{ + $ay.t("CheckForLicense") + }} + @@ -172,7 +178,7 @@ export default { Company: "Super TestCo", Contact: "Test Testerson" }, - obj: {}, + currentLicenseInfo: {}, formState: { ready: false, dirty: false, @@ -212,6 +218,12 @@ export default { } }, methods: { + purchaseLink() { + return ( + "https://www.ayanova.com/purchase_AyaNova_online.htm?dbid=" + + this.currentLicenseInfo.serverDbId + ); + }, showLicenseUi() { /* public enum LicenseStatus { @@ -406,6 +418,12 @@ function initForm(vm) { // (async function() { try { await fetchTranslatedText(vm); + let res = await window.$gz.api.get("license"); + if (res.error) { + throw res.error; + } + vm.currentLicenseInfo = res.data.license; + // await populateSelectionLists(vm); } catch (err) { reject(err);