- this.eiSvc.getEIJobs()
- .pipe(
- catchError((her: HttpErrorResponse) => {
- this.notificationService.error('Failed to get EI jobs: ' + her.error);
- return of([]);
- }),
- finalize(() => this.loadingSubject.next(false))
- )
- .subscribe((instances: EIJob[]) => {
- this.rowCount = instances.length;
- this.eiJobSubject.next(instances);
+ this.jobs = [];
+ this.eiSvc.getProducerIds()
+ .subscribe((producerIds: string[]) => {
+ producerIds.forEach(id => {
+ this.getJobsForProducer(id);
+ });