60 lines
1.7 KiB
TypeScript
60 lines
1.7 KiB
TypeScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
/** Routing Imports */
|
|
import { Route } from '../core/route/route.service';
|
|
|
|
/** Custom Components */
|
|
import { IndividualCollectionSheetComponent } from './individual-collection-sheet/individual-collection-sheet.component';
|
|
import { OfficesResolver } from 'app/organization/offices/common-resolvers/offices.resolver';
|
|
import { CollectionSheetComponent } from './collection-sheet/collection-sheet.component';
|
|
|
|
const routes: Routes = [
|
|
Route.withShell([
|
|
{
|
|
path: 'collections',
|
|
children: [
|
|
{
|
|
path: 'individual-collection-sheet',
|
|
data: {
|
|
title: 'Individual Collection Sheet',
|
|
breadcrumb: 'Individual Collection Sheet',
|
|
routeParamBreadcrumb: false
|
|
},
|
|
component: IndividualCollectionSheetComponent,
|
|
resolve: {
|
|
officesData: OfficesResolver
|
|
}
|
|
},
|
|
{
|
|
path: 'collection-sheet',
|
|
data: {
|
|
title: 'Collection Sheet',
|
|
breadcrumb: 'Collection Sheet',
|
|
routeParamBreadcrumb: false
|
|
},
|
|
component: CollectionSheetComponent,
|
|
resolve: {
|
|
officesData: OfficesResolver
|
|
}
|
|
}
|
|
]
|
|
}
|
|
])
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
providers: [],
|
|
exports: [RouterModule]
|
|
})
|
|
export class CollectionsRoutingModule {}
|