From 348b07cc459a10929954dda923ed06872b31d5cc 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 --- .../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 a5af9e74504..0e27318e6aa 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.25.1