Fix in products view routes (#1643)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
f330e91aa4
commit
a56347d400
@@ -41,6 +41,7 @@ import { SavingsDocumentsTabComponent } from './savings-account-view/savings-doc
|
||||
import { NotesTabComponent } from './savings-account-view/notes-tab/notes-tab.component';
|
||||
import { SavingNotesResolver } from './common-resolvers/saving-notes.resolver';
|
||||
import { SavingDocumentsResolver } from './common-resolvers/saving-documents.resolver';
|
||||
|
||||
/** Savings Routes */
|
||||
const routes: Routes = [
|
||||
{
|
||||
@@ -58,9 +59,6 @@ const routes: Routes = [
|
||||
{
|
||||
path: ':savingAccountId',
|
||||
data: { title: extract('Saving Account View'), routeParamBreadcrumb: 'savingAccountId' },
|
||||
resolve: {
|
||||
savingsAccountData: SavingsAccountViewResolver
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
@@ -70,6 +68,11 @@ const routes: Routes = [
|
||||
savingsDatatables: SavingsDatatablesResolver
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'transactions',
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{
|
||||
path: 'transactions',
|
||||
data: { title: extract('Savings Account Transactions'), breadcrumb: 'Transactions', routeParamBreadcrumb: false },
|
||||
@@ -77,7 +80,6 @@ const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: TransactionsTabComponent
|
||||
|
||||
},
|
||||
{
|
||||
path: 'export',
|
||||
|
||||
Reference in New Issue
Block a user