Skip to content

Commit

Permalink
[Infra UI] Only show 'Hosts' tour when in 'hosts' view (#155619)
Browse files Browse the repository at this point in the history
Closes #155590
## Summary

This PR shows hosts tour only when "hosts" is selected in the `Show`
menu

## Testing

- Go to Inventory page
- Select hosts (default if not changed)
   - You should see the hosts tour
 
<img width="2223" alt="image"
src="https://user-images.githubusercontent.com/14139027/234004293-4720cbed-a120-467a-beb5-1c57ed1cc87e.png">

- Select anything else (for example Kubernetes Pods, Docker Containers)
   - You shouldn't see  the hosts tour
  
<img width="2232" alt="image"
src="https://user-images.githubusercontent.com/14139027/234004468-d5cac8e6-42dc-4d37-954d-18b32cdd0552.png">

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
jennypavlova and kibanamachine authored Apr 25, 2023
1 parent dfea483 commit f1fe2c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const Layout = React.memo(
</EuiFlexGroup>
</TopActionContainer>
<EuiFlexItem grow={false}>
{!hostsLinkClickedRef.current && (
{!hostsLinkClickedRef.current && nodeType === 'host' && (
<TryItButton
data-test-subj="inventory-hostsView-link"
label={i18n.translate('xpack.infra.layout.hostsLandingPageLink', {
Expand Down

0 comments on commit f1fe2c4

Please sign in to comment.