This commit is contained in:
@@ -66,8 +66,16 @@
|
||||
"
|
||||
ref="requestemail"
|
||||
@input="fieldValueChanged('requestemail')"
|
||||
:hint="$ay.t('LicenseEmailVerficationHint')"
|
||||
:persistent-hint="true"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
{{ sendRequestDisabled() }}
|
||||
<v-btn :disabled="sendRequestDisabled()"
|
||||
>$ay.t('SendRequest')</v-btn
|
||||
>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-expansion-panel-content>
|
||||
</v-expansion-panel>
|
||||
@@ -221,6 +229,17 @@ export default {
|
||||
return "ok";
|
||||
}
|
||||
},
|
||||
sendRequestDisabled() {
|
||||
//this is required because no rules are broken until entry starts so button is enabled
|
||||
if (this.request.Company == null) {
|
||||
return true;
|
||||
}
|
||||
return !this.form().controlsAreAllValid(this, [
|
||||
"requestcompany",
|
||||
"requestcontact",
|
||||
"requestemail"
|
||||
]);
|
||||
},
|
||||
translation() {
|
||||
return window.$gz.translation;
|
||||
},
|
||||
@@ -443,7 +462,8 @@ function fetchTranslatedText(vm) {
|
||||
"LicenseCompanyName",
|
||||
"LicenseContactName",
|
||||
"LicenseEmail",
|
||||
"RequestEvaluationLicense"
|
||||
"RequestEvaluationLicense",
|
||||
"LicenseEmailVerficationHint"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user