mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 10:35:18 +00:00
claim_id fix (#70)
This commit is contained in:
parent
923288d432
commit
d99a693c26
@ -55,7 +55,7 @@ export class ClaimInfoComponent implements OnInit {
|
||||
claimInfo => {
|
||||
const editEndpoint = `/claims/${claimInfo.party_id}/${
|
||||
ClaimActionType.edit
|
||||
}/${claimInfo.party_id}`;
|
||||
}/${claimInfo.claim_id}`;
|
||||
this.router.navigate([editEndpoint]).then(() => this.success());
|
||||
},
|
||||
e => this.failed(e)
|
||||
|
@ -99,6 +99,7 @@ export class ClaimService {
|
||||
}
|
||||
|
||||
saveChanges(): Observable<void> {
|
||||
this.isLoading$.next(true);
|
||||
const { partyId, claimId } = this.claimInfoContainer;
|
||||
const units = this.toModificationUnits(this.containers);
|
||||
return this.papiClaimService.getClaim(partyId, claimId).pipe(
|
||||
@ -107,7 +108,8 @@ export class ClaimService {
|
||||
.updateClaim(partyId, claimId, claimInfo.revision, units)
|
||||
.pipe(map(() => claimInfo.revision))
|
||||
),
|
||||
switchMap(revision => this.pollClaimChange(revision))
|
||||
switchMap(revision => this.pollClaimChange(revision)),
|
||||
tap(() => this.isLoading$.next(false))
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user