Skip to content

Commit

Permalink
Reset other chrome fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Aug 21, 2020
1 parent 3c49179 commit b75eb98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/public/chrome/chrome_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,12 @@ export class ChromeService {
const recentlyAccessed = await this.recentlyAccessed.start({ http });
const docTitle = this.docTitle.start({ document: window.document });

// erase the help menu extension from previous app while switching to a next app
// erase chrome fields from a previous app while switching to a next app
application.currentAppId$.subscribe(() => {
helpExtension$.next(undefined);
breadcrumbs$.next([]);
badge$.next(undefined);
docTitle.reset();
});

const setIsNavDrawerLocked = (isLocked: boolean) => {
Expand Down

0 comments on commit b75eb98

Please sign in to comment.