feat: add edit loan product component (#451)

- Update loan product stepper components to support editing
- Add edit loan product component
- Add pristine property to form dialog

Fixes: #439
This commit is contained in:
Abhay Chawla
2019-12-01 23:20:51 +03:00
parent 8bb4fd5b59
commit f37dcd3a5a
22 changed files with 531 additions and 101 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export class ChargesFilterPipe implements PipeTransform {
transform(charges: any, chargesDataSource: any, currencyCode: string, multiDisburseLoan?: boolean): any {
if (charges) {
charges = charges.filter((charge: any) => {
if ((charge.currency.code !== currencyCode) || (!!multiDisburseLoan && charge.chargeTimeType.id === 12) || chargesDataSource.includes(charge)) {
if ((charge.currency.code !== currencyCode) || (!!multiDisburseLoan && charge.chargeTimeType.id === 12) || chargesDataSource.filter((chargeData: any) => chargeData.id === charge.id).length) {
return false;
}
return true;