Browse Source

Merge pull request #9001 from ArtemDzhereleiko/AD/bug-fix/email-validation

Added type email for input
pull/8767/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
94ee3de8de
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/pages/profile/profile.component.html
  2. 2
      ui-ngx/src/app/modules/home/pages/user/user.component.html
  3. 2
      ui-ngx/src/app/shared/components/contact.component.html

2
ui-ngx/src/app/modules/home/pages/profile/profile.component.html

@ -38,7 +38,7 @@
<fieldset [disabled]="isLoading$ | async">
<mat-form-field class="mat-block">
<mat-label translate>user.email</mat-label>
<input matInput formControlName="email" required/>
<input matInput type="email" formControlName="email" required/>
<mat-error *ngIf="profile.get('email').hasError('required')">
{{ 'user.email-required' | translate }}
</mat-error>

2
ui-ngx/src/app/modules/home/pages/user/user.component.html

@ -76,7 +76,7 @@
<fieldset [disabled]="(isLoading$ | async) || !isEdit">
<mat-form-field class="mat-block">
<mat-label translate>user.email</mat-label>
<input matInput formControlName="email" required>
<input matInput type="email" formControlName="email" required>
<mat-error *ngIf="entityForm.get('email').hasError('email')">
{{ 'user.invalid-email-format' | translate }}
</mat-error>

2
ui-ngx/src/app/shared/components/contact.component.html

@ -62,7 +62,7 @@
</tb-phone-input>
<mat-form-field class="mat-block">
<mat-label translate>contact.email</mat-label>
<input matInput formControlName="email">
<input matInput type="email" formControlName="email">
<mat-error *ngIf="parentForm.get('email').hasError('email')">
{{ 'user.invalid-email-format' | translate }}
</mat-error>

Loading…
Cancel
Save