2019-01-18 18:03:45 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
2023-12-28 16:18:49 +01:00
|
|
|
path: 'overview',
|
|
|
|
loadChildren: () => import('./overview/dmp-overview.module').then(m => m.DmpOverviewModule),
|
2019-01-18 18:03:45 +01:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
2023-12-28 16:18:49 +01:00
|
|
|
}
|
2019-01-18 18:03:45 +01:00
|
|
|
},
|
|
|
|
{
|
2023-12-28 16:18:49 +01:00
|
|
|
path: 'new',
|
|
|
|
loadChildren: () => import('./dmp-editor-blueprint/dmp-editor.module').then(m => m.DmpEditorModule),
|
2019-01-18 18:03:45 +01:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
2023-12-28 16:18:49 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'edit',
|
|
|
|
loadChildren: () => import('./dmp-editor-blueprint/dmp-editor.module').then(m => m.DmpEditorModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
}
|
2019-01-18 18:03:45 +01:00
|
|
|
},
|
2023-12-04 18:37:52 +01:00
|
|
|
{
|
2023-12-28 16:18:49 +01:00
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./listing/dmp-listing.module').then(m => m.DmpListingModule),
|
2023-12-04 18:37:52 +01:00
|
|
|
data: {
|
2023-12-28 16:18:49 +01:00
|
|
|
breadcrumb: true
|
2023-12-04 18:37:52 +01:00
|
|
|
},
|
|
|
|
},
|
2023-12-28 16:18:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-01 18:18:41 +01:00
|
|
|
// {
|
|
|
|
// path: 'publicEdit/:publicId',
|
2019-10-04 09:53:35 +02:00
|
|
|
// component: DmpEditorComponent,
|
|
|
|
// data: {
|
2023-12-01 18:18:41 +01:00
|
|
|
// breadcrumb: true,
|
|
|
|
// title: 'GENERAL.TITLES.DMP-PUBLIC-EDIT'
|
|
|
|
// },
|
|
|
|
// canDeactivate: [CanDeactivateGuard]
|
|
|
|
// },
|
2023-12-04 18:37:52 +01:00
|
|
|
|
2023-12-01 18:18:41 +01:00
|
|
|
// {
|
|
|
|
// path: 'publicOverview/:publicId',
|
|
|
|
// component: DmpOverviewComponent,
|
|
|
|
// data: {
|
|
|
|
// breadcrumb: true,
|
|
|
|
// title: 'GENERAL.TITLES.DMP-OVERVIEW'
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
2023-12-04 18:37:52 +01:00
|
|
|
|
2023-12-28 16:18:49 +01:00
|
|
|
|
2020-09-24 19:28:03 +02:00
|
|
|
// {
|
|
|
|
// path: 'new/dataset',
|
|
|
|
// component: DmpEditorComponent,
|
|
|
|
// canActivate: [AuthGuard],
|
|
|
|
// data: {
|
|
|
|
// breadcrumbs: 'new/dataset',
|
|
|
|
// title: 'GENERAL.TITLES.DATASET-NEW'
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: 'new/dataset/:dmpId',
|
|
|
|
// component: DmpEditorComponent,
|
|
|
|
// canActivate: [AuthGuard],
|
|
|
|
// data: {
|
|
|
|
// breadcrumbs: 'new/dataset',
|
|
|
|
// title: 'GENERAL.TITLES.DATASET-NEW'
|
|
|
|
// }
|
|
|
|
// },
|
2023-12-01 18:18:41 +01:00
|
|
|
// {
|
|
|
|
// path: 'new_version/:id',
|
|
|
|
// // component: DmpWizardComponent,
|
|
|
|
// component: DmpCloneComponent,
|
|
|
|
// data: {
|
|
|
|
// clone: false,
|
|
|
|
// breadcrumb: true,
|
|
|
|
// title: 'GENERAL.TITLES.DMP-NEW-VERSION'
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: 'clone/:id',
|
|
|
|
// component: DmpCloneComponent,
|
|
|
|
// data: {
|
|
|
|
// clone: false,
|
|
|
|
// breadcrumb: true,
|
|
|
|
// title: 'GENERAL.TITLES.DMP-CLONE'
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: 'invitation/:id',
|
|
|
|
// component: InvitationAcceptedComponent,
|
|
|
|
// data: {
|
|
|
|
// breadcrumb: true
|
|
|
|
// },
|
|
|
|
// }
|
2019-01-18 18:03:45 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2019-04-26 16:05:15 +02:00
|
|
|
export class DmpRoutingModule { }
|