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>
(cherry picked from commit 5316b4c9cc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e4ddce3f98
commit
0645519faf
|
|
@ -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 New Issue