From 4503e0db713083a3127e8905920f24eaf02ec520 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Fri, 22 Dec 2023 11:05:41 +0100 Subject: [PATCH] Filter Cmpt: handle rowselection via setup option --- public/js/components/filter/Filter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/components/filter/Filter.js b/public/js/components/filter/Filter.js index 77e3d7a60..92984d0eb 100644 --- a/public/js/components/filter/Filter.js +++ b/public/js/components/filter/Filter.js @@ -199,7 +199,7 @@ export const CoreFilterCmpt = { tabulatorOptions.columns = this.filteredColumns; } - if (tabulatorOptions.columns && tabulatorOptions.columns.filter(el => el.formatter == 'rowSelection').length) + if (tabulatorOptions.selectable || (tabulatorOptions.columns && tabulatorOptions.columns.filter(el => el.formatter == 'rowSelection').length)) this.tabulatorHasSelector = true; // Start the tabulator with the build options @@ -235,7 +235,7 @@ export const CoreFilterCmpt = { } }, _updateTabulator() { - this.tabulatorHasSelector = this.filteredColumns.filter(el => el.formatter == 'rowSelection').length; + this.tabulatorHasSelector = this.tabulatorOptions.selectable || this.filteredColumns.filter(el => el.formatter == 'rowSelection').length; this.tabulator.setColumns(this.filteredColumns); this.tabulator.setData(this.filteredData); }, @@ -529,7 +529,7 @@ export const CoreFilterCmpt = { Mit {{selectedData.length}} ausgewählten: - +
[ {{ filterName }} ]