remove 'showPassword' property b/c now handled by bitPasswordInputToggle

This commit is contained in:
rr-bw 2024-09-12 14:04:44 -07:00
parent 7a4b83afde
commit 9cb64b59ca
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 0 additions and 8 deletions

View File

@ -111,7 +111,6 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
// Desktop properties // Desktop properties
deferFocus: boolean = null; // TODO-rr-bw: why initialize to null instead of false deferFocus: boolean = null; // TODO-rr-bw: why initialize to null instead of false
showPassword = false; // TODO-rr-bw: is this still needed? It seems we no longer need this now that we have bitPasswordInputToggle
constructor( constructor(
private activatedRoute: ActivatedRoute, private activatedRoute: ActivatedRoute,
@ -473,10 +472,6 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
} }
} }
private onWindowHidden() {
this.showPassword = false;
}
private focusInput() { private focusInput() {
const email = this.loggedEmail; const email = this.loggedEmail;
document.getElementById(email == null || email === "" ? "email" : "masterPassword")?.focus(); document.getElementById(email == null || email === "" ? "email" : "masterPassword")?.focus();
@ -559,9 +554,6 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => { this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
this.ngZone.run(() => { this.ngZone.run(() => {
switch (message.command) { switch (message.command) {
case "windowHidden":
this.onWindowHidden();
break;
case "windowIsFocused": case "windowIsFocused":
if (this.deferFocus === null) { if (this.deferFocus === null) {
this.deferFocus = !message.windowIsFocused; this.deferFocus = !message.windowIsFocused;