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:
@@ -93,7 +93,7 @@ export class DefaultLoginComponentService implements LoginComponentService {
|
||||
/**
|
||||
* No-op implementation of showBackButton
|
||||
*/
|
||||
showBackButton(): void {
|
||||
showBackButton(show: boolean): void {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,5 +42,5 @@ export abstract class LoginComponentService {
|
||||
/**
|
||||
* Shows the back button.
|
||||
*/
|
||||
showBackButton: () => void;
|
||||
showBackButton: (show: boolean) => void;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user