Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedhamed-ahmed committed Oct 30, 2024
1 parent d965c7f commit e0e8dd2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions x-pack/plugins/observability_solution/infra/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class Plugin implements InfraClientPluginClass {
/** !! Need to be kept in sync with the deepLinks in x-pack/plugins/observability_solution/infra/public/plugin.ts */
pluginsSetup.observabilityShared.navigation.registerSections(
startDep$AndHostViewFlag$.pipe(
map(([[{ application }]]) => {
map(([[{ application }], isInfrastructureHostsViewEnabled]) => {
const { infrastructure, logs } = application.capabilities;
return [
...(logs.show
Expand Down Expand Up @@ -179,11 +179,15 @@ export class Plugin implements InfraClientPluginClass {
},
]
: []),
{
label: hostsTitle,
app: 'metrics',
path: '/hosts',
},
...(isInfrastructureHostsViewEnabled
? [
{
label: hostsTitle,
app: 'metrics',
path: '/hosts',
},
]
: []),
],
},
]
Expand Down

0 comments on commit e0e8dd2

Please sign in to comment.