Skip to content

Commit

Permalink
[Infra][Hosts] Reset SearchBar refresh state to fully disable auto-re…
Browse files Browse the repository at this point in the history
…fresh (elastic#205416)

## Summary

A bug with the search bar configuration allows for a page that does not
have auto-refresh enabled to inherit the auto-refresh state from another
page that had previously enabled it. This PR fixes that by fully
resetting the state for the page's search bar to ensure auto-refresh is
not active for Hosts page (as it should be).

Closes elastic#205414

## How to test

- Go to Alerts page
- Click on the Date Quick Selector, enable the auto-refresh feature.
Confirm the refresh icon is on the datepicker now.
- Navigate to Hosts page
- The auto-refresh icon on the Hosts page search bar datepicker should
no longer be visible, and opening the date quick selector should not
show any auto-refresh feature/toggle.

(cherry picked from commit d25dcc1)
  • Loading branch information
Bluefinger committed Jan 3, 2025
1 parent 07e09d1 commit 0a2d09e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const UnifiedSearchBar = () => {
showQueryMenu
useDefaultBehaviors
isAutoRefreshDisabled
isRefreshPaused
/>
</EuiFlexItem>
<EuiFlexItem>
Expand Down

0 comments on commit 0a2d09e

Please sign in to comment.