Revision 54209
Added by Argiro Kokogiannaki over 5 years ago
aboutPage-routing.module.ts | ||
---|---|---|
4 | 4 |
import {AboutPageComponent} from './aboutPage.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' |
|
7 | 8 |
|
8 | 9 |
@NgModule({ |
9 | 10 |
imports: [ |
10 | 11 |
RouterModule.forChild([ |
11 |
{ path: '', component: AboutPageComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] } |
|
12 |
{ path: '', component: AboutPageComponent, canActivate: [FreeGuard, IsRouteEnabled], canDeactivate: [PreviousRouteRecorder] }
|
|
12 | 13 |
|
13 | 14 |
]) |
14 | 15 |
] |
Also available in: Unified diff
Navbar:
pass properly boolean variables
add all related subitems route in rootmenuitem (for enabling/disabling routes)
Footer:
pass properly boolean variables
Content: update text
Organization/about/stats pages: add route enabled guard
Search/find: use input for placeholder text
Stats: add loading
Manage button: add svg instead of uikit