From 9cb64b59cade4db4dad96dabaccc93bc1b393f17 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:04:44 -0700 Subject: [PATCH] remove 'showPassword' property b/c now handled by bitPasswordInputToggle --- libs/auth/src/angular/login/login.component.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 0642f3dbdf..a379e3101a 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -111,7 +111,6 @@ export class LoginComponentV2 implements OnInit, OnDestroy { // Desktop properties 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( private activatedRoute: ActivatedRoute, @@ -473,10 +472,6 @@ export class LoginComponentV2 implements OnInit, OnDestroy { } } - private onWindowHidden() { - this.showPassword = false; - } - private focusInput() { const email = this.loggedEmail; 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.ngZone.run(() => { switch (message.command) { - case "windowHidden": - this.onWindowHidden(); - break; case "windowIsFocused": if (this.deferFocus === null) { this.deferFocus = !message.windowIsFocused;