Fix error in the Loan charge reload after actions
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
<div fxFlex="50%">
|
<div fxFlex="50%">
|
||||||
{{ chargeData.name }}
|
{{ chargeData.name }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" class="mat-body-strong">
|
<div fxFlex="50%" class="mat-body-strong">
|
||||||
Charge Type
|
Charge Type
|
||||||
</div>
|
</div>
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
<div fxFlex="50%">
|
<div fxFlex="50%">
|
||||||
{{ chargeData.chargeCalculationType.value }}
|
{{ chargeData.chargeCalculationType.value }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" class="mat-body-strong">
|
<div fxFlex="50%" class="mat-body-strong">
|
||||||
Due
|
Due
|
||||||
</div>
|
</div>
|
||||||
@@ -112,6 +112,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
|
||||||
|
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate }}</button>
|
||||||
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
@@ -172,8 +172,8 @@ export class ViewChargeComponent {
|
|||||||
*/
|
*/
|
||||||
private reload() {
|
private reload() {
|
||||||
const clientId = this.loansAccountData.clientId;
|
const clientId = this.loansAccountData.clientId;
|
||||||
const url: string = this.router.url.replace(`/${this.chargeData.id}`, '');
|
const url: string = this.router.url;
|
||||||
this.router.navigateByUrl(`/clients/${clientId}/loansaccounts`, {skipLocationChange: true})
|
this.router.navigateByUrl(`/clients/${clientId}/loans-accounts`, { skipLocationChange: true })
|
||||||
.then(() => this.router.navigate([url]));
|
.then(() => this.router.navigate([url]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user