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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
ui-ngx/src/app/modules/home/pages/profile/profile.component.html
-
ui-ngx/src/app/modules/home/pages/user/user.component.html
-
ui-ngx/src/app/shared/components/contact.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> |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|