From 5316b4c9cc1138c21a8ff05d2599784e2f6139ca Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 31 Aug 2023 16:18:56 +0000 Subject: [PATCH] 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 Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/js/vue/components/KohaTable.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue index a5af9e7450..0e27318e6a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue @@ -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", () => { -- 2.20.1