Skip to content

Commit

Permalink
updating window title based on breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jul 16, 2020
1 parent 0fe304a commit b8b6e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/application/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { usePluginContext } from '../hooks/use_plugin_context';
import { useRouteParams } from '../hooks/use_route_params';
import { Breadcrumbs, routes } from '../routes';

const observabilityLabel = {
const observabilityLabelBreadcrumb = {
text: i18n.translate('xpack.observability.observability.breadcrumb.', {
defaultMessage: 'Observability',
}),
Expand All @@ -39,7 +39,7 @@ const App = () => {
const Wrapper = () => {
const { core } = usePluginContext();

const breadcrumb = [observabilityLabel, ...route.breadcrumb];
const breadcrumb = [observabilityLabelBreadcrumb, ...route.breadcrumb];
useEffect(() => {
core.chrome.setBreadcrumbs(breadcrumb);
}, [core, breadcrumb]);
Expand Down

0 comments on commit b8b6e5b

Please sign in to comment.