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-text-field>
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
<!-- <v-row>
<v-col cols="8"> -->
<v-btn <v-btn
:disabled="sendRequestDisabled()" :disabled="sendRequestDisabled()"
@click="sendEvaluationRequest()" @click="sendEvaluationRequest()"
class="mt-4 mr-4" class="mt-4 mr-4"
>{{ $ay.t("SendEvaluationRequest") }}</v-btn >{{ $ay.t("SendEvaluationRequest") }}</v-btn
> >
<!-- </v-col>
<v-col cols="4"> -->
<v-btn @click="fetchKey()" class="mt-4">{{ <v-btn @click="fetchKey()" class="mt-4">{{
$ay.t("CheckForLicense") $ay.t("CheckForLicense")
}}</v-btn> }}</v-btn>
<!-- </v-col>
</v-row> -->
</v-col> </v-col>
</v-row> </v-row>
</v-expansion-panel-content> </v-expansion-panel-content>
@@ -95,8 +90,19 @@
$ay.t("PurchaseLicense") $ay.t("PurchaseLicense")
}}</v-expansion-panel-header> }}</v-expansion-panel-header>
<v-expansion-panel-content> <v-expansion-panel-content>
Takes to purchase page Purchase page has link to pricing and <!-- Future purchase in app but for now -->
help regarding licensing <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-content>
</v-expansion-panel> </v-expansion-panel>
<v-expansion-panel> <v-expansion-panel>
@@ -172,7 +178,7 @@ export default {
Company: "Super TestCo", Company: "Super TestCo",
Contact: "Test Testerson" Contact: "Test Testerson"
}, },
obj: {}, currentLicenseInfo: {},
formState: { formState: {
ready: false, ready: false,
dirty: false, dirty: false,
@@ -212,6 +218,12 @@ export default {
} }
}, },
methods: { methods: {
purchaseLink() {
return (
"https://www.ayanova.com/purchase_AyaNova_online.htm?dbid=" +
this.currentLicenseInfo.serverDbId
);
},
showLicenseUi() { showLicenseUi() {
/* public enum LicenseStatus /* public enum LicenseStatus
{ {
@@ -406,6 +418,12 @@ function initForm(vm) {
// (async function() { // (async function() {
try { try {
await fetchTranslatedText(vm); 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); // await populateSelectionLists(vm);
} catch (err) { } catch (err) {
reject(err); reject(err);