2018-01-30 10:35:26 +01:00
|
|
|
import { DatasetWizardComponent } from './dataset-wizard/dataset-wizard.component';
|
|
|
|
import { DatasetListingComponent } from './listing/dataset-listing.component';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2018-05-28 11:50:42 +02:00
|
|
|
import { AuthGuard } from '../shared/guards/auth.guard';
|
2018-08-30 13:09:36 +02:00
|
|
|
import { DatasetPublicListingComponent } from './dataset-public/dataset-public-listing.component';
|
2018-01-30 10:35:26 +01:00
|
|
|
|
|
|
|
export const DatasetRoutes: Routes = [
|
2018-06-28 11:28:16 +02:00
|
|
|
{
|
|
|
|
path: "new/:dmpId",
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "edit/:id",
|
|
|
|
component: DatasetWizardComponent,
|
2018-08-31 10:14:56 +02:00
|
|
|
canActivate: [AuthGuard],
|
2018-06-28 11:28:16 +02:00
|
|
|
data: {
|
2018-08-31 10:14:56 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
public: false
|
2018-06-28 11:28:16 +02:00
|
|
|
},
|
|
|
|
},
|
2018-08-31 10:14:56 +02:00
|
|
|
{
|
|
|
|
path: "publicEdit/:id",
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
//canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
public: true
|
|
|
|
}
|
|
|
|
},
|
2018-06-28 11:28:16 +02:00
|
|
|
{
|
|
|
|
path: "new",
|
|
|
|
component: DatasetWizardComponent,
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DatasetListingComponent,
|
2018-08-30 13:09:36 +02:00
|
|
|
//canActivate: [AuthGuard],
|
2018-06-28 11:28:16 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
2018-08-30 13:09:36 +02:00
|
|
|
{
|
|
|
|
path: 'public',
|
|
|
|
component: DatasetPublicListingComponent,
|
|
|
|
//canActivate: [AuthGuard],
|
|
|
|
},
|
2018-06-28 11:28:16 +02:00
|
|
|
{
|
|
|
|
path: "dmp/:dmpId",
|
|
|
|
component: DatasetListingComponent,
|
2018-08-30 13:09:36 +02:00
|
|
|
//canActivate: [AuthGuard],
|
2018-06-28 11:28:16 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
}
|
2018-01-30 10:35:26 +01:00
|
|
|
];
|