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 (elastic#106253)
  • Loading branch information
jloleysens committed Jul 21, 2021
1 parent cdc5c5b commit 26b741f
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 @@ -153,14 +153,23 @@ 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$,
this.config.poll,
apiClient,
params
);

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

Expand Down

0 comments on commit 26b741f

Please sign in to comment.