From 1d265d529e904f2f026ac03dd27cdc88251740d8 Mon Sep 17 00:00:00 2001 From: Alec Rippberger Date: Thu, 17 Apr 2025 12:59:27 -0500 Subject: [PATCH] Revert "add navigation logic to lock component" This reverts commit 00b4cf1b2cd2402a8986ffa8764a3a6fce362dcf. --- .../src/lock/components/lock.component.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/libs/key-management-ui/src/lock/components/lock.component.ts b/libs/key-management-ui/src/lock/components/lock.component.ts index 48d6f4e452e..296d2a9daf5 100644 --- a/libs/key-management-ui/src/lock/components/lock.component.ts +++ b/libs/key-management-ui/src/lock/components/lock.component.ts @@ -176,9 +176,6 @@ export class LockComponent implements OnInit, OnDestroy { await this.desktopOnInit(); } else if (this.clientType === ClientType.Browser) { this.biometricUnlockBtnText = this.lockComponentService.getBiometricsUnlockBtnText(); - - // Navigate to vault when a new active account is set - await this.navigateNewActiveAccountUserToVault(); } } @@ -670,19 +667,6 @@ export class LockComponent implements OnInit, OnDestroy { ); } - /** - * Listens for logout events and navigates to the vault if the user is logged in - */ - private async navigateNewActiveAccountUserToVault() { - this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message) => { - if (message.command === "switchAccountFinish") { - if (this.activeAccount != null) { - await this.router.navigate(["vault"]); - } - } - }); - } - // ----------------------------------------------------------------------------------------------- // Desktop methods: // ----------------------------------------------------------------------------------------------- @@ -753,7 +737,7 @@ export class LockComponent implements OnInit, OnDestroy { this.destroy$.next(); this.destroy$.complete(); - if (this.clientType === ClientType.Desktop || this.clientType === ClientType.Browser) { + if (this.clientType === "desktop") { this.broadcasterService.unsubscribe(BroadcasterSubscriptionId); } }