refactor: fixed deposits module (#1201)

See: #1196
This commit is contained in:
Karan Takalkar
2020-08-13 17:44:23 +05:30
committed by GitHub
parent a1cd561453
commit 572a07bf45
11 changed files with 34 additions and 10 deletions
@@ -43,6 +43,9 @@ export class StandingInstructionsTabComponent implements OnInit {
/**
* Retrieves Fixed Deposits Account Data from `resolve`.
* @param {ActivatedRoute} route Activated Route.
* @param {FixedDepositsService} fixedDepositsService FixedDepositsService
* @param {MatDialog} dialog Mat Dialog
* @param {AccountTransfersService} accountTransfersService Accounts Transfer Service
*/
constructor(private route: ActivatedRoute,
private fixedDepositsService: FixedDepositsService,
@@ -73,6 +76,10 @@ export class StandingInstructionsTabComponent implements OnInit {
});
}
/**
* Deletes a standing instruction
* @param {any} instructionId Instruction Id
*/
deleteStandingInstruction(instructionId: any) {
const deleteStandingInstructionDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `standing instruction id: ${instructionId}` }