This commit is contained in:
2020-06-14 15:37:53 +00:00
parent 8e3e670d65
commit 8f610a52a5

View File

@@ -71,21 +71,16 @@
></v-text-field>
</v-col>
<v-col cols="12">
<!-- <v-row>
<v-col cols="8"> -->
<v-btn
:disabled="sendRequestDisabled()"
@click="sendEvaluationRequest()"
class="mt-4 mr-4"
>{{ $ay.t("SendEvaluationRequest") }}</v-btn
>
<!-- </v-col>
<v-col cols="4"> -->
<v-btn @click="fetchKey()" class="mt-4">{{
$ay.t("CheckForLicense")
}}</v-btn>
<!-- </v-col>
</v-row> -->
</v-col>
</v-row>
</v-expansion-panel-content>
@@ -95,8 +90,19 @@
$ay.t("PurchaseLicense")
}}</v-expansion-panel-header>
<v-expansion-panel-content>
Takes to purchase page Purchase page has link to pricing and
help regarding licensing
<!-- Future purchase in app but for now -->
<v-col cols="12">
<v-btn
:href="purchaseLink()"
target="blank"
class="mt-4 mr-4"
>{{ $ay.t("PurchaseLicense") }}</v-btn
>
<v-btn @click="fetchKey()" class="mt-4">{{
$ay.t("CheckForLicense")
}}</v-btn>
</v-col>
</v-expansion-panel-content>
</v-expansion-panel>
<v-expansion-panel>
@@ -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);