diff --git a/src/app/core/components/contact/contact.component.html b/src/app/core/components/contact/contact.component.html index 306e60a7a28bb460f97e6f98878a092c0b7cae08..742788f9b37aba7cc13d8a85fcb8a803dc2cf9ec 100644 --- a/src/app/core/components/contact/contact.component.html +++ b/src/app/core/components/contact/contact.component.html @@ -179,7 +179,7 @@ <div class="has-text-right button-wrapper"> <button class="button button-gl is-outlined" type="button" [disabled]="formDisabled" (click)="cancel()" i18n="@@contact.cancel">Cancel</button> - <button type="submit" class="button button-gl" [ngClass]="{'is-loading': formDisabled}" [disabled]="formIsInvalid() || formDisabled" + <button type="submit" class="button button-gl" [ngClass]="{'is-loading': formDisabled}" [disabled]="formIsInvalid || formDisabled" i18n="@@contact.send">Send</button> </div> </div> diff --git a/src/app/core/components/contact/contact.component.ts b/src/app/core/components/contact/contact.component.ts index f8fc4dc557d0e6e818f6288c44a6197ed2e303df..e06099f82cabc4b6c1b0e82bd188d7004f70664e 100644 --- a/src/app/core/components/contact/contact.component.ts +++ b/src/app/core/components/contact/contact.component.ts @@ -97,7 +97,7 @@ export class ContactComponent implements OnInit { // Return true if one of the fields at least doesn't respect its validators // or if the confirmation email is different from the email - formIsInvalid() { + get formIsInvalid() { const controls = this.form.controls; const value = this.form.invalid || this.emailConfirmationError; return value;