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:
@@ -119,6 +119,7 @@ export class SendComponent extends BaseSendComponent implements OnInit, OnDestro
|
||||
|
||||
ngOnDestroy() {
|
||||
this.dialogService.closeAll();
|
||||
this.dialogService.closeDrawer();
|
||||
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user