refactor: existing savings account actions (#941)

Fixes: #940
This commit is contained in:
Karan Takalkar
2020-06-28 17:13:05 +05:30
committed by GitHub
parent af5f9995f0
commit 35a25e018f
31 changed files with 294 additions and 275 deletions
@@ -17,9 +17,6 @@ import { SavingsService } from 'app/savings/savings.service';
})
export class SavingsAccountAssignStaffComponent implements OnInit {
/** Savings Account Data */
@Input() savingsAccountData: any;
/** Minimum date allowed. */
minDate = new Date(2000, 0, 1);
/** Maximum date allowed. */
@@ -30,6 +27,8 @@ export class SavingsAccountAssignStaffComponent implements OnInit {
accountId: any;
/** Field Officer Data */
fieldOfficerData: any;
/** Savings Account Data */
savingsAccountData: any;
/**
* @param {FormBuilder} formBuilder Form Builder
@@ -44,6 +43,9 @@ export class SavingsAccountAssignStaffComponent implements OnInit {
private route: ActivatedRoute,
private router: Router) {
this.accountId = this.route.parent.snapshot.params['savingAccountId'];
this.route.data.subscribe((data: { savingsAccountActionData: any }) => {
this.savingsAccountData = data.savingsAccountActionData;
});
}
/**