diff --git a/projects/components/src/table/table.component.ts b/projects/components/src/table/table.component.ts index b20c3314e..a5d9180fa 100644 --- a/projects/components/src/table/table.component.ts +++ b/projects/components/src/table/table.component.ts @@ -2,8 +2,8 @@ /* eslint-disable @angular-eslint/component-max-inline-declarations */ import { ModalService } from '../modal/modal.service'; import { - TableEditColumnsModalConfig, - TableEditColumnsModalComponent + TableEditColumnsModalComponent, + TableEditColumnsModalConfig } from './columns/table-edit-columns-modal.component'; import { CdkHeaderRow } from '@angular/cdk/table'; import { @@ -35,7 +35,7 @@ import { } from '@hypertrace/common'; import { isNil, without } from 'lodash-es'; import { BehaviorSubject, combineLatest, merge, Observable, Subject } from 'rxjs'; -import { switchMap, take, filter, map } from 'rxjs/operators'; +import { filter, map, switchMap, take } from 'rxjs/operators'; import { FilterAttribute } from '../filtering/filter/filter-attribute'; import { LoadAsyncConfig } from '../load-async/load-async.service'; import { PageEvent } from '../paginator/page.event'; @@ -720,6 +720,7 @@ export class TableComponent this.updateVisibleColumns(visibleColumns); this.columnConfigsSubject.next(columnConfigurations); + this.columnConfigsChange.next(columnConfigurations); } private checkColumnWidthCompatibilityOrThrow(width?: TableColumnWidth): void { @@ -824,6 +825,7 @@ export class TableComponent this.updateVisibleColumns(updatedColumns.filter(c => c.visible)); this.distributeWidthToColumns(TableColumnWidthUtil.getColWidthInPx(column.width)); this.columnConfigsSubject.next(updatedColumns); + this.columnConfigsChange.next(updatedColumns); } public showEditColumnsModal(): void {