mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-33589 Get task variables when preferences are updated (#10813)
This commit is contained in:
parent
9575fe633b
commit
f34bbf59be
@ -230,6 +230,9 @@ describe('TaskListCloudComponent', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
component.ngAfterContentInit();
|
||||
spyOn(component, 'createDatatableSchema');
|
||||
component.appName = 'fake-app-name';
|
||||
component.reload();
|
||||
});
|
||||
|
||||
@ -375,6 +378,9 @@ describe('TaskListCloudComponent', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
component.ngAfterContentInit();
|
||||
spyOn(component, 'createDatatableSchema');
|
||||
component.appName = 'fake-app-name';
|
||||
component.reload();
|
||||
});
|
||||
|
||||
@ -390,7 +396,7 @@ describe('TaskListCloudComponent', () => {
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(fetchTaskListSpy).toHaveBeenCalledTimes(1);
|
||||
expect(fetchTaskListSpy).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
describe('component changes', () => {
|
||||
beforeEach(() => {
|
||||
|
@ -280,10 +280,10 @@ export class TaskListCloudComponent extends BaseTaskListCloudComponent<ProcessLi
|
||||
) {
|
||||
super(appConfigService, taskCloudService, userPreferences, PRESET_KEY, cloudPreferenceService);
|
||||
|
||||
combineLatest([this.isColumnSchemaCreated$, this.fetchProcessesTrigger$])
|
||||
combineLatest([this.isLoadingPreferences$, this.isColumnSchemaCreated$, this.fetchProcessesTrigger$])
|
||||
.pipe(
|
||||
tap(() => this.isReloadingSubject$.next(true)),
|
||||
filter((isColumnSchemaCreated) => !!isColumnSchemaCreated),
|
||||
filter(([isLoadingPreferences, isColumnSchemaCreated]) => !isLoadingPreferences && !!isColumnSchemaCreated),
|
||||
switchMap(() => {
|
||||
if (this.searchApiMethod === 'POST') {
|
||||
const requestNode = this.createTaskListRequestNode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user