feat: edit fixed deposits account (#1011)

Fixes: #1010
This commit is contained in:
Karan Takalkar
2020-07-07 20:51:17 +05:30
committed by GitHub
parent 24ecbb1758
commit 5f6422e3f1
19 changed files with 432 additions and 29 deletions
@@ -35,8 +35,8 @@
</ng-container>
<ng-container matColumnDef="repeatsOn">
<th mat-header-cell *matHeaderCellDef> Repeats On (M/d) </th>
<td mat-cell *matCellDef="let charge"> {{ charge.feeOnMonthDay ? charge.feeOnMonthDay.join('/') : '' }} </td>
<th mat-header-cell *matHeaderCellDef> Repeats On </th>
<td mat-cell *matCellDef="let charge"> {{charge.feeOnMonthDay ? ([2000].concat(charge.feeOnMonthDay) | date: 'dd MMMM') : 'Unassigned'}} </td>
</ng-container>
<ng-container matColumnDef="calculationType">
@@ -36,6 +36,10 @@ export class FixedDepositAccountViewComponent implements OnInit {
/**
* Fetches fixed deposits account data from `resolve`
* @param {ActivatedRoute} route Activated Route
* @param {Router} router Router
* @param {FixedDepositsService} fixedDepositsService Fixed Deposits Service
* @param {SavingsService} savingsService Savings Service
* @param {MatDialog} dialog Mat Dialog
*/
constructor(private route: ActivatedRoute,
private router: Router,
@@ -99,7 +103,7 @@ export class FixedDepositAccountViewComponent implements OnInit {
this.router.navigate([`actions/${name}`], { relativeTo: this.route });
break;
case 'Modify Application':
this.router.navigate(['edit-savings-account'], { relativeTo: this.route });
this.router.navigate(['edit-fixed-deposit-account'], { relativeTo: this.route });
break;
case 'Delete':
this.deleteFixedDepositsAccount();