2019-11-01 19:30:11 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
2019-11-27 13:14:14 +01:00
|
|
|
import {StakeholderComponent} from "./stakeholder.component";
|
2020-01-08 12:00:50 +01:00
|
|
|
import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard";
|
2020-06-12 12:46:11 +02:00
|
|
|
import {AdminDashboardGuard} from "../utils/adminDashboard.guard";
|
2019-11-01 19:30:11 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: '',
|
2019-11-27 13:14:14 +01:00
|
|
|
component: StakeholderComponent,
|
2020-06-12 12:46:11 +02:00
|
|
|
canActivate: [AdminDashboardGuard],
|
2020-01-08 12:00:50 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard]
|
2019-11-01 19:30:11 +01:00
|
|
|
}
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
2019-11-27 13:14:14 +01:00
|
|
|
export class StakeholderRoutingModule {
|
2019-11-01 19:30:11 +01:00
|
|
|
}
|