Move hint button out of the formfield (#3960)

This commit is contained in:
Robyn MacCallum 2022-11-04 11:10:29 -04:00 committed by GitHub
parent 839d89e0b4
commit 1cd62db1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -72,8 +72,8 @@
</form>
<ng-template [formGroup]="formGroup" #loginPage>
<div class="tw-mb-3">
<bit-form-field>
<div class="tw-mb-6 tw-h-28">
<bit-form-field class="!tw-mb-1">
<bit-label>{{ "masterPass" | i18n }}</bit-label>
<input
id="login_input_master-password"
@ -89,10 +89,10 @@
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
></i>
</button>
<bit-hint>
<a routerLink="/hint" (click)="setFormValues()">{{ "getMasterPasswordHint" | i18n }}</a>
</bit-hint>
</bit-form-field>
<a class="-tw-mt-2" routerLink="/hint" (mousedown)="goToHint()" (click)="setFormValues()">{{
"getMasterPasswordHint" | i18n
}}</a>
</div>
<div [hidden]="!showCaptcha()">

View File

@ -184,6 +184,11 @@ export class LoginComponent extends BaseLoginComponent implements OnInit, OnDest
}
}
goToHint() {
this.setFormValues();
this.router.navigateByUrl("/hint");
}
async submit() {
const rememberEmail = this.formGroup.value.rememberEmail;