Move hint button out of the formfield (#3960)
This commit is contained in:
parent
839d89e0b4
commit
1cd62db1c0
|
@ -72,8 +72,8 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<ng-template [formGroup]="formGroup" #loginPage>
|
<ng-template [formGroup]="formGroup" #loginPage>
|
||||||
<div class="tw-mb-3">
|
<div class="tw-mb-6 tw-h-28">
|
||||||
<bit-form-field>
|
<bit-form-field class="!tw-mb-1">
|
||||||
<bit-label>{{ "masterPass" | i18n }}</bit-label>
|
<bit-label>{{ "masterPass" | i18n }}</bit-label>
|
||||||
<input
|
<input
|
||||||
id="login_input_master-password"
|
id="login_input_master-password"
|
||||||
|
@ -89,10 +89,10 @@
|
||||||
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<bit-hint>
|
|
||||||
<a routerLink="/hint" (click)="setFormValues()">{{ "getMasterPasswordHint" | i18n }}</a>
|
|
||||||
</bit-hint>
|
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
<a class="-tw-mt-2" routerLink="/hint" (mousedown)="goToHint()" (click)="setFormValues()">{{
|
||||||
|
"getMasterPasswordHint" | i18n
|
||||||
|
}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [hidden]="!showCaptcha()">
|
<div [hidden]="!showCaptcha()">
|
||||||
|
|
|
@ -184,6 +184,11 @@ export class LoginComponent extends BaseLoginComponent implements OnInit, OnDest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goToHint() {
|
||||||
|
this.setFormValues();
|
||||||
|
this.router.navigateByUrl("/hint");
|
||||||
|
}
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
const rememberEmail = this.formGroup.value.rememberEmail;
|
const rememberEmail = this.formGroup.value.rememberEmail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue