Skip to content

Commit

Permalink
fix(auth): use basic status instead deprecated empty string (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Morcuende authored and yggg committed Nov 12, 2019
1 parent 1e1a293 commit a202468
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/framework/auth/components/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 id="title" class="title">Login</h1>
placeholder="Email address"
fieldSize="large"
autofocus
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : ''"
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.email.required')"
[attr.aria-invalid]="email.invalid && email.touched ? true : null">
<ng-container *ngIf="email.invalid && email.touched">
Expand All @@ -56,7 +56,7 @@ <h1 id="title" class="title">Login</h1>
id="input-password"
placeholder="Password"
fieldSize="large"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : ''"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.password.required')"
[minlength]="getConfigValue('forms.validation.password.minLength')"
[maxlength]="getConfigValue('forms.validation.password.maxLength')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 id="title" class="title">Register</h1>
autofocus
fullWidth
fieldSize="large"
[status]="fullName.dirty ? (fullName.invalid ? 'danger' : 'success') : ''"
[status]="fullName.dirty ? (fullName.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.fullName.required')"
[minlength]="getConfigValue('forms.validation.fullName.minLength')"
[maxlength]="getConfigValue('forms.validation.fullName.maxLength')"
Expand Down Expand Up @@ -56,7 +56,7 @@ <h1 id="title" class="title">Register</h1>
placeholder="Email address"
fullWidth
fieldSize="large"
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : ''"
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.email.required')"
[attr.aria-invalid]="email.invalid && email.touched ? true : null">
<ng-container *ngIf="email.invalid && email.touched">
Expand All @@ -80,7 +80,7 @@ <h1 id="title" class="title">Register</h1>
placeholder="Password"
fullWidth
fieldSize="large"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : ''"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.password.required')"
[minlength]="getConfigValue('forms.validation.password.minLength')"
[maxlength]="getConfigValue('forms.validation.password.maxLength')"
Expand Down Expand Up @@ -109,7 +109,7 @@ <h1 id="title" class="title">Register</h1>
placeholder="Confirm Password"
fullWidth
fieldSize="large"
[status]="rePass.dirty ? (rePass.invalid || password.value != rePass.value ? 'danger' : 'success') : ''"
[status]="rePass.dirty ? (rePass.invalid || password.value != rePass.value ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.password.required')"
[attr.aria-invalid]="rePass.invalid && rePass.touched ? true : null">
<ng-container *ngIf="rePass.invalid && rePass.touched">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 id="title" class="title">Forgot Password</h1>
autofocus
fullWidth
fieldSize="large"
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : ''"
[status]="email.dirty ? (email.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.email.required')"
[attr.aria-invalid]="email.invalid && email.touched ? true : null">
<ng-container *ngIf="email.invalid && email.touched">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 id="title" class="title">Change password</h1>
autofocus
fullWidth
fieldSize="large"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : ''"
[status]="password.dirty ? (password.invalid ? 'danger' : 'success') : 'basic'"
[required]="getConfigValue('forms.validation.password.required')"
[minlength]="getConfigValue('forms.validation.password.minLength')"
[maxlength]="getConfigValue('forms.validation.password.maxLength')"
Expand Down Expand Up @@ -62,7 +62,7 @@ <h1 id="title" class="title">Change password</h1>
fieldSize="large"
[status]="rePass.touched
? (rePass.invalid || password.value != rePass.value ? 'danger' : 'success')
: ''"
: 'basic'"
[required]="getConfigValue('forms.validation.password.required')"
[attr.aria-invalid]="rePass.invalid && rePass.touched ? true : null">
<ng-container *ngIf="rePass.touched">
Expand Down

0 comments on commit a202468

Please sign in to comment.