1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

Rework ExtensionAnonLayoutWrapperDataService to use BehaviorSubject

This commit is contained in:
Alec Rippberger
2024-10-21 08:32:14 -05:00
parent 808d31c790
commit 8889ed3d3c
6 changed files with 24 additions and 21 deletions

View File

@@ -93,7 +93,7 @@ export class DefaultLoginComponentService implements LoginComponentService {
/**
* No-op implementation of showBackButton
*/
showBackButton(): void {
showBackButton(show: boolean): void {
return;
}
}

View File

@@ -42,5 +42,5 @@ export abstract class LoginComponentService {
/**
* Shows the back button.
*/
showBackButton: () => void;
showBackButton: (show: boolean) => void;
}

View File

@@ -327,6 +327,8 @@ export class LoginComponent implements OnInit, OnDestroy {
pageSubtitle: this.emailFormControl.value,
pageIcon: this.Icons.WaveIcon,
});
this.loginComponentService.showBackButton(true);
}
}
@@ -348,8 +350,6 @@ export class LoginComponent implements OnInit, OnDestroy {
this.masterPasswordInputRef?.nativeElement?.focus();
});
}
this.loginComponentService.showBackButton();
}
}