feature/refactor-login #19
|
@ -458,10 +458,11 @@
|
||||||
<div
|
<div
|
||||||
class="modal modal-open"
|
class="modal modal-open"
|
||||||
*ngIf="
|
*ngIf="
|
||||||
isTokenVerified() ||
|
(isTokenVerified() ||
|
||||||
isVerifying() ||
|
isVerifying() ||
|
||||||
verificationError() ||
|
verificationError() ||
|
||||||
isAutoLoginInProgress()
|
isAutoLoginInProgress()) &&
|
||||||
|
isValidLoginAttempt()
|
||||||
"
|
"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
aria-labelledby="verify-modal-title"
|
aria-labelledby="verify-modal-title"
|
||||||
|
|
|
@ -254,6 +254,10 @@ export class WelcomeRootComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public isValidLoginAttempt(): boolean {
|
||||||
|
return this.signin() && this.token() !== '';
|
||||||
|
}
|
||||||
|
|
||||||
private focusPasswordField(): void {
|
private focusPasswordField(): void {
|
||||||
if (this.passwordInput) {
|
if (this.passwordInput) {
|
||||||
this.passwordInput.nativeElement.focus();
|
this.passwordInput.nativeElement.focus();
|
||||||
|
|
|
@ -8,3 +8,8 @@
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
|
||||||
|
:root:has(:is(.modal-open, .modal:target, .modal-toggle:checked + .modal, .modal[open])) {
|
||||||
|
scrollbar-gutter: auto
|
||||||
|
;}
|
||||||
|
|
Loading…
Reference in New Issue