1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

[EC-159] [BEEEP] Remove factory providers in Angular DI (#775)

This commit is contained in:
Thomas Rittson
2022-04-26 07:28:43 +10:00
committed by GitHub
parent 5c88dcf0cc
commit e40e7de808
4 changed files with 58 additions and 139 deletions

View File

@@ -31,7 +31,7 @@ export class NotificationsService implements NotificationsServiceAbstraction {
private apiService: ApiService,
private vaultTimeoutService: VaultTimeoutService,
private environmentService: EnvironmentService,
private logoutCallback: () => Promise<void>,
private logoutCallback: (expired: boolean) => Promise<void>,
private logService: LogService,
private stateService: StateService
) {
@@ -169,7 +169,7 @@ export class NotificationsService implements NotificationsServiceAbstraction {
break;
case NotificationType.LogOut:
if (isAuthenticated) {
this.logoutCallback();
this.logoutCallback(true);
}
break;
case NotificationType.SyncSendCreate: