Skip to content

Commit

Permalink
set the doc title when navigating to reporting and unset when navigat…
Browse files Browse the repository at this point in the history
…ing away (#106253) (#106354)
  • Loading branch information
jloleysens committed Jul 21, 2021
1 parent 9f1d070 commit 5b36316
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion x-pack/plugins/reporting/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ export class ReportingPublicPlugin
getStartServices(),
import('./management/mount_management_section'),
]);
return await mountManagementSection(
const {
chrome: { docTitle },
} = start;
docTitle.change(this.title);
const umountAppCallback = await mountManagementSection(
core,
start,
license$,
Expand All @@ -167,6 +171,11 @@ export class ReportingPublicPlugin
share.url,
params
);

return () => {
docTitle.reset();
umountAppCallback();
};
},
});

Expand Down

0 comments on commit 5b36316

Please sign in to comment.