mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
update popup router cache when navigating after file upload (#17694)
This commit is contained in:
@@ -120,8 +120,8 @@ export class PopupRouterCacheService {
|
||||
/**
|
||||
* Navigate back in history
|
||||
*/
|
||||
async back() {
|
||||
if (!BrowserPopupUtils.inPopup(window)) {
|
||||
async back(updateCache = false) {
|
||||
if (!updateCache && !BrowserPopupUtils.inPopup(window)) {
|
||||
this.location.back();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,6 @@ export class AttachmentsV2Component {
|
||||
|
||||
/** Navigate the user back to the edit screen after uploading an attachment */
|
||||
async navigateBack() {
|
||||
await this.popupRouterCacheService.back();
|
||||
await this.popupRouterCacheService.back(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user