From b79820e7e7a0d6d6cdf1f81b6153473516764cad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 7 Nov 2024 14:33:20 +0100 Subject: [PATCH] Bug 33484: Redraw columns filters when column visibility is modified - Vue --- .../intranet-tmpl/prog/js/vue/components/KohaTable.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 9064f677c44..d56b9563c85 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue @@ -219,15 +219,16 @@ export default { let dt = this.$refs.table.dt() let table_node = dt.table().node() let add_filters = this.add_filters + let filters_options = this.filters_options if (add_filters) { - _dt_add_filters(table_node, dt, this.filters_options) + _dt_add_filters(table_node, dt, filters_options) } dt.on("column-visibility.dt", function () { - _dt_on_visibility(add_filters, table_node, dt) + if (add_filters) { + _dt_add_filters(table_node, dt, filters_options) + } }) - .columns(this.hidden_ids) - .visible(false) dt.on("search.dt", function (e, settings) { toggledClearFilter( -- 2.34.1