2019-01-18 18:03:45 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { AuthGuard } from '../../core/auth-guard.service';
|
2018-01-30 10:35:26 +01:00
|
|
|
import { DatasetWizardComponent } from './dataset-wizard/dataset-wizard.component';
|
|
|
|
import { DatasetListingComponent } from './listing/dataset-listing.component';
|
2020-07-03 15:58:13 +02:00
|
|
|
import { DatasetOverviewComponent } from './overview/dataset-overview.component';
|
2018-01-30 10:35:26 +01:00
|
|
|
|
2019-01-18 18:03:45 +01:00
|
|
|
const routes: Routes = [
|
2018-10-05 17:00:54 +02:00
|
|
|
{
|
|
|
|
path: 'new/:dmpId',
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-NEW'
|
2018-10-05 17:00:54 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'edit/:id',
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
2019-09-16 17:46:19 +02:00
|
|
|
public: false,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-EDIT'
|
2018-10-05 17:00:54 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-04-01 12:42:46 +02:00
|
|
|
path: 'publicEdit/:publicId',
|
2018-10-05 17:00:54 +02:00
|
|
|
component: DatasetWizardComponent,
|
2019-04-01 12:42:46 +02:00
|
|
|
//canActivate: [AuthGuard],
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
public: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-PUBLIC-EDIT'
|
2018-10-05 17:00:54 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-NEW'
|
2018-10-05 17:00:54 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DatasetListingComponent,
|
2020-03-16 17:50:29 +01:00
|
|
|
// canActivate: [AuthGuard],
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'dmp/:dmpId',
|
|
|
|
component: DatasetListingComponent,
|
2019-01-18 18:03:45 +01:00
|
|
|
canActivate: [AuthGuard],
|
2018-10-05 17:00:54 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
2019-03-28 15:53:17 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'copy/:id',
|
|
|
|
component: DatasetWizardComponent,
|
2019-04-01 12:42:46 +02:00
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-COPY'
|
2019-04-01 12:42:46 +02:00
|
|
|
},
|
2019-04-22 11:11:21 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'profileupdate/:updateId',
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-UPDATE'
|
2019-04-22 11:11:21 +02:00
|
|
|
},
|
2020-07-02 17:29:33 +02:00
|
|
|
},
|
2020-07-03 15:58:13 +02:00
|
|
|
{
|
|
|
|
path: 'overview/:id',
|
|
|
|
component: DatasetOverviewComponent,
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'publicOverview/:publicId',
|
|
|
|
component: DatasetOverviewComponent,
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
|
|
|
},
|
|
|
|
}
|
2018-01-30 10:35:26 +01:00
|
|
|
];
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2019-03-28 15:53:17 +01:00
|
|
|
export class DatasetRoutingModule { }
|