[CST-5339] Various improvements

This commit is contained in:
Luca Giamminonni
2022-06-20 15:27:32 +02:00
parent c62f72789d
commit ac677d52d7
6 changed files with 21 additions and 19 deletions

View File

@@ -89,12 +89,12 @@ export class OrcidQueueComponent implements OnInit, OnDestroy {
debounceTime(100),
distinctUntilChanged(),
tap(() => this.processing$.next(true)),
switchMap((config: PaginationComponentOptions) => this.orcidQueueService.searchByOwnerId(this.item.id, config, false)),
switchMap((config: PaginationComponentOptions) => this.orcidQueueService.searchByProfileItemId(this.item.id, config, false)),
getFirstCompletedRemoteData()
).subscribe((result: RemoteData<PaginatedList<OrcidQueue>>) => {
this.processing$.next(false);
this.list$.next(result);
this.orcidQueueService.clearFindByOwnerRequests();
this.orcidQueueService.clearFindByProfileItemRequests();
})
);
}