feat: add create standing instructions (#1142)

Fixes: #268
This commit is contained in:
Muskan Khedia
2020-07-19 18:27:17 +05:30
committed by GitHub
parent c134026030
commit af6cdbaa9f
15 changed files with 588 additions and 9 deletions
@@ -229,6 +229,10 @@ const routes: Routes = [
path: 'sharesaccounts',
loadChildren: '../shares/shares.module#SharesModule'
},
{
path: 'standing-instructions',
loadChildren: '../account-transfers/account-transfers.module#AccountTransfersModule'
},
]
}
]
@@ -37,6 +37,7 @@
<button mat-raised-button>+ Deposit</button>
<button mat-raised-button [matMenuTriggerFor]="More">More</button>
<mat-menu #More="matMenu">
<button mat-menu-item (click)="doAction('Create Standing Instructions')">Create Standing Instructions</button>
<button mat-menu-item [routerLink]="['sharesaccounts', 'create-shares-account']">New Share Account</button>
<button mat-menu-item [routerLink]="['recurringdeposits', 'create-recurring-deposits-account']">New Recurring Deposit Account</button>
<button mat-menu-item [routerLink]="['fixed-deposits-accounts', 'create-fixed-deposit-account']">New Fixed Deposits Account</button>
@@ -95,6 +95,10 @@ export class ClientsViewComponent implements OnInit {
case 'Delete Image':
this.deleteProfileImage();
break;
case 'Create Standing Instructions':
const queryParams: any = { officeId: this.clientViewData.officeId, accountType: 'fromsavings' };
this.router.navigate(['standing-instructions/create-standing-instructions'], { relativeTo: this.route, queryParams: queryParams });
break;
}
}