1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 04:33:38 +00:00

have to sync and navigate to vault after key connector keys exchange

This commit is contained in:
Maciej Zieniuk
2025-04-11 11:00:44 +01:00
parent 7c2ae780a2
commit 6845dfcba1

View File

@@ -6,6 +6,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
import { KeyConnectorService } from "@bitwarden/common/key-management/key-connector/abstractions/key-connector.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
import { SyncService } from "@bitwarden/common/platform/sync";
import { UserId } from "@bitwarden/common/types/guid";
import { AsyncActionsModule, ButtonModule, IconButtonModule } from "@bitwarden/components";
import { KdfType } from "@bitwarden/key-management";
@@ -39,6 +40,7 @@ export class ConfirmKeyConnectorDomainComponent implements OnInit {
private logService: LogService,
private keyConnectorService: KeyConnectorService,
private messagingService: MessagingService,
private syncService: SyncService,
) {}
async ngOnInit() {
@@ -99,7 +101,11 @@ export class ConfirmKeyConnectorDomainComponent implements OnInit {
this.kdfParallelism,
);
await this.syncService.fullSync(true);
this.messagingService.send("loggedIn");
await this.router.navigate(["/"]);
};
cancel = async () => {