2018-01-26 16:00:07 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import {OpenaireMyClaimsComponent } from './myClaims.component';
|
2018-02-15 12:12:55 +01:00
|
|
|
import {LoginGuard} from '../../openaireLibrary/login/loginGuard.guard';
|
|
|
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
2018-03-22 16:38:42 +01:00
|
|
|
|
2018-01-26 16:00:07 +01:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{ path: '', component: OpenaireMyClaimsComponent, canActivate: [IsRouteEnabled, LoginGuard],
|
2018-03-22 16:38:42 +01:00
|
|
|
data: {redirect: '/error' }, canDeactivate: [PreviousRouteRecorder]}])
|
2018-01-26 16:00:07 +01:00
|
|
|
]
|
|
|
|
})
|
|
|
|
export class MyClaimsRoutingModule { }
|