added column fix

This commit is contained in:
Jan Prochazka
2020-04-27 18:47:09 +02:00
parent 7e461f32dc
commit c91d739fd0
4 changed files with 10 additions and 8 deletions

View File

@@ -5,11 +5,11 @@ export interface GridConfigColumns {
hiddenColumns: string[];
expandedColumns: string[];
addedColumns: string[];
focusedColumn?: string;
}
export interface GridConfig extends GridConfigColumns {
filters: { [uniqueName: string]: string };
focusedColumn?: string;
sort: {
uniqueName: string;
order: 'ASC' | 'DESC';

View File

@@ -81,7 +81,7 @@ export abstract class GridDisplay {
}
get allColumns() {
return this.columns;
return this.getColumns(null).filter((col) => col.isChecked || col.uniquePath.length == 1);
}
reload() {