@alfresco/adf-process-services-cloud 8.4.0-21206097129 → 8.4.0-21208030199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12606,8 +12606,11 @@ class ProcessListCloudComponent extends DataTableSchema {
12606
12606
  });
12607
12607
  }
12608
12608
  ngAfterContentInit() {
12609
+ this.loadPreferencesAndInitialize(this.appName);
12610
+ }
12611
+ loadPreferencesAndInitialize(appName) {
12609
12612
  this.cloudPreferenceService
12610
- .getPreferences(this.appName)
12613
+ .getPreferences(appName)
12611
12614
  .pipe(take(1), map((preferences) => {
12612
12615
  const preferencesList = preferences?.list?.entries || [];
12613
12616
  const columnsOrder = preferencesList.find((preference) => preference.entry.key === ProcessListCloudPreferences.columnOrder);
@@ -12641,12 +12644,16 @@ class ProcessListCloudComponent extends DataTableSchema {
12641
12644
  this.columnsWidths = columnsWidths;
12642
12645
  }
12643
12646
  this.createDatatableSchema();
12647
+ this.createColumns();
12644
12648
  });
12645
12649
  }
12646
12650
  ngOnChanges(changes) {
12647
12651
  if (this.isPropertyChanged(changes, 'sorting')) {
12648
12652
  this.formatSorting(changes['sorting'].currentValue);
12649
12653
  }
12654
+ if (changes['appName']) {
12655
+ this.loadPreferencesAndInitialize(changes['appName'].currentValue);
12656
+ }
12650
12657
  if (this.isAnyPropertyChanged(changes)) {
12651
12658
  this.reload();
12652
12659
  }