AAE-38626 Reload columns on appname change (#11560)

* [AAE-38626] Updating columns when appName changes

[AAE-38626] Updating columns when appName changes

* [AAE-38626] Added tests

* Added indicator to handle app change

* [ci:force] fixes

* Checking enableAppChange in ngOnchange

* Fixed tests

---------

Co-authored-by: Fabian Kindgen <39992669+fkindgen@users.noreply.github.com>
This commit is contained in:
Andreas Philippi
2026-01-27 20:18:14 +01:00
committed by GitHub
co-authored by Fabian Kindgen
parent 15806d7c9f
commit 6131bf3890
4 changed files with 131 additions and 65 deletions
@@ -45,17 +45,19 @@ export abstract class DataTableSchema<T = unknown> {
protected columnsSchemaSubject$ = new BehaviorSubject<boolean>(false);
isColumnSchemaCreated$ = this.columnsSchemaSubject$.asObservable();
constructor(private appConfigService: AppConfigService, protected presetKey: string, protected presetsModel: any) {}
constructor(
private appConfigService: AppConfigService,
protected presetKey: string,
protected presetsModel: any
) {}
public createDatatableSchema(): void {
this.loadLayoutPresets();
if (!this.columns || this.columns.length === 0) {
this.createColumns();
this.columnsSchemaSubject$.next(true);
} else {
this.columnsSchemaSubject$.next(true);
}
this.columnsSchemaSubject$.next(true);
}
public createColumns(): void {