1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 11:54:02 +00:00

ensure the at-risk-passwords page navigates back to the vault

This commit is contained in:
Nick Krantz
2025-03-28 11:23:09 -05:00
parent f8145d8f60
commit 59a1b335c8
2 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
<popup-page [loading]="loading$ | async">
<popup-header slot="header" [pageTitle]="'atRiskPasswords' | i18n" showBackButton>
<popup-header
slot="header"
[pageTitle]="'atRiskPasswords' | i18n"
showBackButton
[backAction]="navigateToVault.bind(this)"
>
<ng-container slot="end">
<app-pop-out></app-pop-out>
</ng-container>

View File

@@ -223,4 +223,13 @@ export class AtRiskPasswordsComponent implements OnInit {
this.launchingCipher.set(null);
}
};
/**
* This page can be the first page the user sees when the extension launches,
* which can conflict with the `PopupRouterCacheService`. This replaces the
* built-in back button behavior so the user always navigates to the vault.
*/
protected async navigateToVault() {
await this.router.navigate(["/tabs/vault"]);
}
}