remove 'showPassword' property b/c now handled by bitPasswordInputToggle
This commit is contained in:
parent
7a4b83afde
commit
9cb64b59ca
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue