2020-11-23 13:28:46 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
import {OpenaireSearchDataprovidersToDepositComponent} from './searchDataprovidersToDeposit.component';
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
2020-11-25 18:39:05 +01:00
|
|
|
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
2020-11-23 13:28:46 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: '', component: OpenaireSearchDataprovidersToDepositComponent, data: {
|
|
|
|
redirect: '/error'
|
2020-11-25 18:39:05 +01:00
|
|
|
}, canDeactivate: [PreviousRouteRecorder], canActivate: [IsRouteEnabled]
|
2020-11-23 13:28:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class SearchDataprovidersToDepositRoutingModule {
|
|
|
|
}
|