The clearSearch function in Empty states needs to be a prop passed by components. Today it is set to const clearSearch = useSelector(selectHostDetailsClearSearch); in the common EmptyStateMessage component.
Created from redmine issue https://projects.theforeman.org/issues/36220
Upstream bug assigned to None
Hi Samir, Can you provide some reproducer steps and what the user sees when this occurs? Thanks!
Upstream bug assigned to jlenz
To reproduce: 1. Perform a search that gets no results on any of the new Host Details or Content View UI pages 2. Click the "Clear search" link Expected: The search input is cleared and the table is reset to showing all items Actual: Nothing happens
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36220 has been resolved.
Tested on: 6.14 - Snap 5 Steps to Reproduce: 1. Perform a search that returns no results on the Host table or Content Views table 2. Clear the searchbox Expected Results: The filtered view is cleared, and the table returns to normal Actual Results: The filtered view is cleared, and the table returns to normal
Update: Followed the wrong instructions above, here are the actual steps to test this BZ Tested on: 6.14 - Snap 5 Steps to Reproduce: 1. Perform a search that returns no results in a component that offers you a 'Clear search' link in the table body when no results are found (New Host UI errata, Content Views search) 2. Click the 'Clear search' link Expected Results: The filtered view is cleared, and the table returns to normal Actual Results: The filtered view is cleared, and the table returns to normal