1
|
import { NgModule } from '@angular/core';
|
2
|
import { RouterModule } from '@angular/router';
|
3
|
import { OpenaireDepositDatasetsResultComponent } from './depositDatasetsResult.component';
|
4
|
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
5
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
6
|
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
7
|
|
8
|
@NgModule({
|
9
|
imports: [
|
10
|
RouterModule.forChild([
|
11
|
{ path: '', component: OpenaireDepositDatasetsResultComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
12
|
redirect: '/error'
|
13
|
},canDeactivate: [PreviousRouteRecorder] }
|
14
|
|
15
|
])
|
16
|
]
|
17
|
})
|
18
|
export class DepositDatasetsResultsRoutingModule { }
|