feat: add view savings account page (#862)
- Transactions Tab - Charges Tab - Standing Instructions Tab Fixes: #221
This commit is contained in:
@@ -6,32 +6,50 @@ import { Routes, RouterModule } from '@angular/router';
|
||||
import { extract } from '../core/i18n/i18n.service';
|
||||
|
||||
/** Custom Components */
|
||||
import { SavingsAccountViewComponent } from './savings-account-view/savings-account-view.component';
|
||||
import { TransactionsTabComponent } from './savings-account-view/transactions-tab/transactions-tab.component';
|
||||
import { SavingAccountActionsComponent } from './saving-account-actions/saving-account-actions.component';
|
||||
import { AddSavingsChargeComponent } from './add-savings-charge/add-savings-charge.component';
|
||||
import { ChargesTabComponent } from './savings-account-view/charges-tab/charges-tab.component';
|
||||
import { StandingInstructionsTabComponent } from './savings-account-view/standing-instructions-tab/standing-instructions-tab.component';
|
||||
|
||||
/** Custom Resolvers */
|
||||
import { SavingAccountTransactionTemplateResolver } from './common-resolvers/saving-transaction-template.resolver';
|
||||
import { SavingsChargeTemplateResolver } from './common-resolvers/savings-charge-template.resolver';
|
||||
import { SavingsAccountViewResolver } from './common-resolvers/savings-account-view.resolver';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
data: { title: extract('All Savings'), breadcrumb: 'Savings', routeParamBreadcrumb: false },
|
||||
// Component to view all saving accounts Comes Here
|
||||
children: [
|
||||
{
|
||||
path: ':savingAccountId',
|
||||
data: { title: extract('Saving Account View'), routeParamBreadcrumb: 'savingAccountId' },
|
||||
// Component For Saving Account View Comes Here
|
||||
component: SavingsAccountViewComponent,
|
||||
resolve: {
|
||||
savingsAccountData: SavingsAccountViewResolver
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'transactions',
|
||||
component: TransactionsTabComponent,
|
||||
data: { title: extract('Savings Account Transactions'), breadcrumb: 'Transactions', routeParamBreadcrumb: false }
|
||||
},
|
||||
{
|
||||
path: 'charges',
|
||||
component: ChargesTabComponent,
|
||||
data: { title: extract('Savings Account Charges'), breadcrumb: 'Charges', routeParamBreadcrumb: false }
|
||||
},
|
||||
{
|
||||
path: 'standing-instructions',
|
||||
component: StandingInstructionsTabComponent,
|
||||
data: { title: extract('Savings Account SIH'), breadcrumb: 'Standing Instructions', routeParamBreadcrumb: false }
|
||||
},
|
||||
{
|
||||
path: 'add-savings-charge',
|
||||
component: AddSavingsChargeComponent,
|
||||
data: {
|
||||
title: extract('Add Savings Charge'),
|
||||
breadcrumb: 'Add Savings Charge',
|
||||
routeParamBreadcrumb: false
|
||||
},
|
||||
data: { title: extract('Add Savings Charge'), breadcrumb: 'Add Savings Charge', routeParamBreadcrumb: false },
|
||||
resolve: {
|
||||
savingsChargeTemplate: SavingsChargeTemplateResolver
|
||||
}
|
||||
@@ -53,6 +71,8 @@ const routes: Routes = [
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
declarations: [],
|
||||
providers: [SavingAccountTransactionTemplateResolver, SavingsChargeTemplateResolver]
|
||||
providers: [SavingAccountTransactionTemplateResolver,
|
||||
SavingsChargeTemplateResolver,
|
||||
SavingsAccountViewResolver]
|
||||
})
|
||||
export class SavingsRoutingModule {}
|
||||
|
||||
Reference in New Issue
Block a user