Commit 2973559e authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

[hotfix] Fix bug that made impossible to send an email

parent ddf08c8e
Pipeline #1366 passed with stages
in 7 minutes and 23 seconds
......@@ -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"
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment