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
|
* Navigate back in history
|
||||||
*/
|
*/
|
||||||
async back() {
|
async back(updateCache = false) {
|
||||||
if (!BrowserPopupUtils.inPopup(window)) {
|
if (!updateCache && !BrowserPopupUtils.inPopup(window)) {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,6 @@ export class AttachmentsV2Component {
|
|||||||
|
|
||||||
/** Navigate the user back to the edit screen after uploading an attachment */
|
/** Navigate the user back to the edit screen after uploading an attachment */
|
||||||
async navigateBack() {
|
async navigateBack() {
|
||||||
await this.popupRouterCacheService.back();
|
await this.popupRouterCacheService.back(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user