diff --git a/dmp-frontend/src/app/ui/grant/grant.routing.ts b/dmp-frontend/src/app/ui/grant/grant.routing.ts index 66670909c..9c715987d 100644 --- a/dmp-frontend/src/app/ui/grant/grant.routing.ts +++ b/dmp-frontend/src/app/ui/grant/grant.routing.ts @@ -1,36 +1,37 @@ -// import { NgModule } from '@angular/core'; -// import { RouterModule, Routes } from '@angular/router'; -// import { GrantEditorComponent } from './editor/grant-editor.component'; -// import { GrantListingComponent } from './listing/grant-listing.component'; +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { GrantEditorComponent } from './editor/grant-editor.component'; +import { GrantListingComponent } from './listing/grant-listing.component'; -// const routes: Routes = [ -// { -// path: '', -// component: GrantListingComponent, -// data: { -// breadcrumb: true -// }, -// }, -// { -// path: 'edit/:id', -// component: GrantEditorComponent, -// data: { -// breadcrumb: true, -// title: 'GENERAL.TITLES.GRANT-EDIT' -// } -// }, -// { -// path: 'new', -// component: GrantEditorComponent, -// data: { -// breadcrumb: true, -// title: 'GENERAL.TITLES.GRANT-NEW' -// }, -// } -// ]; +// ----------- UNCOMMENT TO ADD AGAIN GRANTS -------- +const routes: Routes = [ + // { + // path: '', + // component: GrantListingComponent, + // data: { + // breadcrumb: true + // }, + // }, + // { + // path: 'edit/:id', + // component: GrantEditorComponent, + // data: { + // breadcrumb: true, + // title: 'GENERAL.TITLES.GRANT-EDIT' + // } + // }, + // { + // path: 'new', + // component: GrantEditorComponent, + // data: { + // breadcrumb: true, + // title: 'GENERAL.TITLES.GRANT-NEW' + // }, + // } +]; -// @NgModule({ -// imports: [RouterModule.forChild(routes)], -// exports: [RouterModule] -// }) -// export class GrantRoutingModule { } +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class GrantRoutingModule { }