mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
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:
co-authored by
Fabian Kindgen
parent
15806d7c9f
commit
6131bf3890
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user