2021-02-10 10:30:25 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
|
|
|
import {OpenaireMyOrcidLinksComponent} from "./myOrcidLinks.component";
|
|
|
|
import {LoginGuard} from "../../openaireLibrary/login/loginGuard.guard";
|
2022-05-12 11:25:10 +02:00
|
|
|
import {properties} from "../../../environments/environment";
|
2021-02-10 10:30:25 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{ path: '', component: OpenaireMyOrcidLinksComponent,
|
|
|
|
canActivate: [LoginGuard], data: {
|
2022-05-12 11:25:10 +02:00
|
|
|
redirect: properties.errorLink, community : 'openaire'
|
2021-02-10 10:30:25 +01:00
|
|
|
},
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class MyOrcidLinksRoutingModule { }
|