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:
parent
68baf8a7c1
commit
5316b4c9cc
1 changed files with 7 additions and 0 deletions
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in a new issue