SES-123 Lint errors fix

This commit is contained in:
Łukasz Góreczny 2020-12-27 16:33:02 +01:00
parent 607145f45f
commit b82393a62b
2 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@
type="text" type="text"
required required
name="username"> name="username">
<mat-error *ngIf="signUpFormGroup?.get('newAccount')?.controls?.username?.hasError('required')"> <mat-error *ngIf="signUpFormGroup?.get('newAccount')['controls']?.username?.hasError('required')">
Username is required Username is required
</mat-error> </mat-error>
<mat-icon matSuffix>person</mat-icon> <mat-icon matSuffix>person</mat-icon>
@ -26,7 +26,7 @@
type="password" type="password"
name="password"/> name="password"/>
<mat-icon matSuffix>lock</mat-icon> <mat-icon matSuffix>lock</mat-icon>
<mat-error *ngIf="signUpFormGroup?.get('newAccount')?.controls?.password?.hasError('required')"> <mat-error *ngIf="signUpFormGroup?.get('newAccount')['controls']?.password?.hasError('required')">
Password is required Password is required
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
@ -40,10 +40,10 @@
type="password" type="password"
name="confirmPassword"/> name="confirmPassword"/>
<mat-icon matSuffix >lock</mat-icon> <mat-icon matSuffix >lock</mat-icon>
<mat-error *ngIf="signUpFormGroup?.get('newAccount')?.controls?.confirmPassword?.hasError('required')"> <mat-error *ngIf="signUpFormGroup?.get('newAccount')['controls']?.confirmPassword?.hasError('required')">
Confirm your password Confirm your password
</mat-error> </mat-error>
<mat-error class="password-mismatch" *ngIf="signUpFormGroup?.get('newAccount')?.controls?.confirmPassword?.hasError('mismatch')"> <mat-error class="password-mismatch" *ngIf="signUpFormGroup?.get('newAccount')['controls']?.confirmPassword?.hasError('mismatch')">
Please make sure your passwords match Please make sure your passwords match
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>

View File

@ -12,7 +12,7 @@
type="text" type="text"
required required
name="username"> name="username">
<mat-error *ngIf="signInFormGroup?.get('signIn')?.controls?.username?.hasError('required')"> <mat-error *ngIf="signInFormGroup?.get('signIn')['controls']?.username?.hasError('required')">
Username is required Username is required
</mat-error> </mat-error>
<mat-icon matSuffix>person</mat-icon> <mat-icon matSuffix>person</mat-icon>
@ -28,7 +28,7 @@
type="password" type="password"
name="password"/> name="password"/>
<mat-icon matSuffix>lock</mat-icon> <mat-icon matSuffix>lock</mat-icon>
<mat-error *ngIf="signInFormGroup?.get('signIn')?.controls?.password?.hasError('required')"> <mat-error *ngIf="signInFormGroup?.get('signIn')['controls']?.password?.hasError('required')">
Password is required Password is required
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>