This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user