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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Pedro Amorim 2023-08-31 16:18:56 +00:00 committed by Tomas Cohen Arazi
parent 68baf8a7c1
commit 5316b4c9cc
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -153,6 +153,13 @@ export default {
.columns(this.hidden_ids)
.visible(false)
dt.on("search.dt", function (e, settings) {
toggledClearFilter(
settings.oPreviousSearch.sSearch,
settings.nTable.id
)
})
if (Object.keys(this.actions).length) {
const self = this
dt.on("draw", () => {