dossier changes adaptation
This commit is contained in:
parent
8d5f4b8051
commit
4e89c6a94f
@ -1,5 +1,5 @@
|
||||
import { EntitiesService, List, mapEach, QueryParam, RequiredParam, shareLast, Toaster, Validate } from '@iqser/common-ui';
|
||||
import { Dossier, DossierStats, IChangesDetails, IDossier, IDossierChanges, IDossierRequest } from '@red/domain';
|
||||
import { Dossier, DossierStats, IChangesDetails, IDossier, IDossierChange, IDossierChanges, IDossierRequest } from '@red/domain';
|
||||
import { combineLatest, EMPTY, forkJoin, Observable, of, Subject, throwError } from 'rxjs';
|
||||
import { catchError, filter, map, pluck, switchMap, tap } from 'rxjs/operators';
|
||||
import { Injector } from '@angular/core';
|
||||
@ -71,10 +71,7 @@ export abstract class DossiersService extends EntitiesService<Dossier, IDossier>
|
||||
|
||||
hasChangesDetails$(): Observable<IDossierChanges> {
|
||||
const body = { value: this._lastCheckedForChanges.get('root') ?? '0' };
|
||||
return this._post<IChangesDetails>(body, `${this._defaultModelPath}/changes/details`).pipe(
|
||||
filter(changes => changes.dossierChanges.length > 0),
|
||||
pluck('dossierChanges'),
|
||||
);
|
||||
return this._post<IDossierChanges>(body, `${this._defaultModelPath}/changes/details`).pipe(filter(changes => changes.length > 0));
|
||||
}
|
||||
|
||||
protected _emitFileChanges(dossierChanges: IDossierChanges): void {
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 1e6ebf252fa3be1704595d42dc621380a0d07ca0
|
||||
Subproject commit ff90785831fe786879d0eb8b158ca8919c7b011c
|
||||
Loading…
x
Reference in New Issue
Block a user