This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
<v-col cols="12">
|
||||
<v-btn
|
||||
:disabled="sendRequestDisabled()"
|
||||
@click="sendRequest()"
|
||||
@click="sendEvaluationRequest()"
|
||||
>$ay.t('SendRequest')</v-btn
|
||||
>
|
||||
</v-col>
|
||||
@@ -249,7 +249,7 @@ export default {
|
||||
"requestemail"
|
||||
]);
|
||||
},
|
||||
async sendRequest() {
|
||||
async sendEvaluationRequest() {
|
||||
let vm = this;
|
||||
try {
|
||||
//Only no key or expired trial are here, not expired purchase
|
||||
@@ -268,13 +268,19 @@ export default {
|
||||
|
||||
//send request
|
||||
r = await window.$gz.api.upsertEx("license/trialRequest", vm.request);
|
||||
|
||||
//a string is returned and will start with E1 if it's an error
|
||||
if (r.data.startsWith("E1")) {
|
||||
if (r.startsWith("E1")) {
|
||||
throw r;
|
||||
}
|
||||
|
||||
window.$gz.eventBus.$emit("notify-success", r.data);
|
||||
|
||||
if (r == "ok") {
|
||||
r = vm.$ay.t("EvaluationRequestReceived");
|
||||
window.$gz.eventBus.$emit("notify-success", r);
|
||||
} else {
|
||||
//some kind of non-ok issue but not an outright error
|
||||
window.$gz.eventBus.$emit("notify-info", r);
|
||||
}
|
||||
//then another message box saying watch your email to verify
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, vm);
|
||||
@@ -420,6 +426,7 @@ function fetchTranslatedText(vm) {
|
||||
"LicenseEmail",
|
||||
"RequestEvaluationLicense",
|
||||
"LicenseEmailVerficationHint",
|
||||
"EvaluationRequestReceived",
|
||||
"AdminEraseDatabaseWarning", //preexisting
|
||||
"NewLicenseInstalled",
|
||||
"NewLicenseNotFound"
|
||||
|
||||
Reference in New Issue
Block a user