The "Clear filter" button of KohaTable in Vue components is always disabled and has no effect when clicked.
Created attachment 154799 [details] [review] Bug 34466: Add listener to enable or disable clear filter button on KohaTable.vue
Pedro, shouldn't we provide Cypress tests?
I think we should reuse the code from js/datatables.js instead, like we do for _dt_visibility, _dt_buttons, _dt_default_ajax, etc.
Created attachment 155020 [details] [review] Bug 34466: Cypress tests
Created attachment 155021 [details] [review] Bug 34466: Add listener to enable or disable clear filter button on KohaTable.vue Test plan: Apply only the cypress test patch Run KohaTable_spec.ts Notice it fails Apply this patch, repeat
Thanks Jonathan I wasn't aware the code be reused directly (doh!)
Created attachment 155064 [details] [review] Bug 34466: Cypress tests Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 155065 [details] [review] Bug 34466: Add listener to enable or disable clear filter button on KohaTable.vue Test plan: Apply only the cypress test patch Run KohaTable_spec.ts Notice it fails Apply this patch, repeat Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 23.11. Nice work everyone, thanks!
Pushed to 23.05.x for 23.05.04
Nice work everyone! Pushed to oldstable for 22.11.x