Host reservation list - Reset or re-apply the filter
The issue was found during 1.15 sanity checks by @piotrek: #1296 (comment 434121) and @slawek: #1296 (comment 434179)
Piotrek wrote:
Yet another issue found in filtered tables. This applies to all tables that use queryParams
to keep the filter state and use TabView
/ TabPanel
(most of tables use it).
E.g. for hosts:
- go to any Kea app
- Host Reservations -> button click
- We have filtered hosts only for that Kea app
- Click on a reservation
- Detailed view opens in tab
- Click on Host Reservations tab to go back to Table view
- We see all Host Reservations (filtering by Kea app is cleared). Text input of the filter displays remaining filter by Kea
appId
.
Slawek wrote:
Clicking the first tab on the host page lists all results but keeps the old filter.
Steps to reproduce:
- Go to the host reservation list
- Provide any valid value in the filter box
- Click the first tab titled "Host Reservations"
- Observe the table contains all host reservations, but the filter box is not empty