mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
fixed ordering of columns in column filter while preset ios applied
This commit is contained in:
@@ -215,23 +215,9 @@ export const CoreFilterCmpt = {
|
||||
fieldIdsForVisibilty() {
|
||||
if (!this.tableBuilt) return [];
|
||||
|
||||
const localizedColumnTitles = this.tabulator.getLang().columns;
|
||||
const isTabulatorLocalized = !!this.$props.tabulatorOptions.locale;
|
||||
return this.tabulator
|
||||
.getColumns()
|
||||
.filter((col) => {
|
||||
let def = col.getDefinition();
|
||||
let title =
|
||||
isTabulatorLocalized && localizedColumnTitles[def.field]
|
||||
? localizedColumnTitles[def.field]
|
||||
: def.title;
|
||||
return (
|
||||
!def.frozen &&
|
||||
title &&
|
||||
def.formatter != "responsiveCollapse"
|
||||
);
|
||||
})
|
||||
.map((col) => col.getField());
|
||||
return this.$props.tabulatorOptions?.columns
|
||||
?.filter((column) => column.formatter !== "responsiveCollapse")
|
||||
.map((column) => column.field) ?? [];
|
||||
},
|
||||
idExtra() {
|
||||
if (!this.uuid) return "";
|
||||
|
||||
Reference in New Issue
Block a user