1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

[PM-29875] Close Send drawer on navigation (#18031)

This commit is contained in:
Mike Amirault
2025-12-18 14:48:48 -05:00
committed by GitHub
parent 0527171f3c
commit 39bc4fb789
2 changed files with 6 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ export class SendComponent extends BaseSendComponent implements OnInit, OnDestro
ngOnDestroy() {
this.dialogService.closeAll();
this.dialogService.closeDrawer();
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
}

View File

@@ -300,6 +300,11 @@ export class DialogService {
return this.dialog.closeAll();
}
/** Close the open drawer */
closeDrawer(): void {
return this.activeDrawer?.close();
}
/** The injector that is passed to the opened dialog */
private createInjector(opts: { data: unknown; dialogRef: DialogRef }): Injector {
return Injector.create({