Commit c894aef6 authored by Brendan's avatar Brendan

remove completed-content style

parent 7c7a9b8b
Pipeline #38270574 failed with stage
in 4 minutes and 58 seconds
......@@ -194,10 +194,6 @@ label.import__toggle-preview.form-field__checkbox {
}
}
&__completed-content {
display: none;
}
&__verified-content {
height: 28px;
padding: 0;
......
......@@ -20,40 +20,46 @@
[class.u-margin-b-20]="hasFinished">
Verify Password
</app-form-label>
<input
#passwordInput
name="oldPassword"
[type]="form.value.showConfirm ? 'password' : 'text'"
[ngrxFormControlState]="form.controls.oldPassword"
class="form-field__input form-field__input--one-action"
[class.form-field__input--invalid]="form.errors._oldPassword && form.isSubmitted"
[class.register-step__completed-content]="hasFinished"
[disabled]="hasFinished"
autocomplete="off"
/>
<div class="form-field__actions" [class.register-step__completed-content]="hasFinished">
<button type="button" tabindex="-1" (click)="toggleShowConfirm.emit()" class="form-field__action">
<div class="button__icon button__icon--no-text" [inlineSVG]="form.value.showConfirm ? '../assets/svg/eye.svg' : '../assets/svg/eye-slash.svg'"></div>
</button>
<div
*ngIf="!hasFinished"
class="form-field__input-with-actions">
<input
#passwordInput
name="oldPassword"
[type]="form.value.showConfirm ? 'password' : 'text'"
[ngrxFormControlState]="form.controls.oldPassword"
class="form-field__input form-field__input--one-action"
[class.form-field__input--invalid]="form.errors._oldPassword && form.isSubmitted"
[disabled]="hasFinished"
autocomplete="off"
/>
<div class="form-field__actions">
<button type="button" tabindex="-1" (click)="toggleShowConfirm.emit()" class="form-field__action">
<div class="button__icon button__icon--no-text" [inlineSVG]="form.value.showConfirm ? '../assets/svg/eye.svg' : '../assets/svg/eye-slash.svg'"></div>
</button>
</div>
</div>
</div>
<ul *ngIf="form.errors._oldPassword && form.isSubmitted" class="form-field__error-list">
<li *ngIf="form.errors._oldPassword.required" class="form-field__error">
You must enter your current password
</li>
<li *ngIf="form.errors._oldPassword.minLength" class="form-field__error">
Password must be at least
{{ form.errors._oldPassword.minLength.minLength }} characters long.
</li>
</ul>
<div class="manage-backup-code__actions u-margin-b-20">
<button type="submit" class="button button--primary" [class.register-step__completed-content]="hasFinished" [disabled]="hasStarted">
Next
</button>
<progress-indicator [inProgress]="hasStarted" inProgressText="Verifying"></progress-indicator>
<div *ngIf="!hasFinished">
<ul *ngIf="form.errors._oldPassword && form.isSubmitted" class="form-field__error-list">
<li *ngIf="form.errors._oldPassword.required" class="form-field__error">
You must enter your current password
</li>
<li *ngIf="form.errors._oldPassword.minLength" class="form-field__error">
Password must be at least
{{ form.errors._oldPassword.minLength.minLength }} characters long.
</li>
</ul>
<div class="manage-backup-code__actions u-margin-b-20">
<button type="submit" class="button button--primary" [disabled]="hasStarted">
Next
</button>
<progress-indicator [inProgress]="hasStarted" inProgressText="Verifying"></progress-indicator>
</div>
</div>
<app-form-label
[isLarge]="true"
[isInactive]="!hasFinished"
......
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