Revision 59189
Added by Konstantina Galouni almost 4 years ago
searchSoftware-routing.module.ts | ||
---|---|---|
4 | 4 |
import {OpenaireSearchSoftwareComponent} from './searchSoftware.component'; |
5 | 5 |
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard'; |
6 | 6 |
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; |
7 |
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard' |
|
8 | 7 |
|
9 |
|
|
10 | 8 |
@NgModule({ |
11 | 9 |
imports: [ |
12 | 10 |
RouterModule.forChild([ |
13 |
{ path: '', component: OpenaireSearchSoftwareComponent, canActivate: [FreeGuard, IsRouteEnabled], canDeactivate: [PreviousRouteRecorder], data: {
|
|
11 |
{ path: '', component: OpenaireSearchSoftwareComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder], data: { |
|
14 | 12 |
redirect: '/error' |
15 | 13 |
} } |
16 | 14 |
|
Also available in: Unified diff
[use-UoaAdminToolsLibrary | Connect]: Merge trunk into branch.