Revision 60171
Added by Argiro Kokogiannaki over 3 years ago
pages-routing.module.ts | ||
---|---|---|
1 | 1 |
import { NgModule } from '@angular/core'; |
2 | 2 |
import {RouterModule} from '@angular/router'; |
3 |
import {PagesComponent} from "../openaireLibrary/dashboard/page/pages.component"; |
|
4 |
import {IsCommunityOrAdmin} from "../openaireLibrary/connect/communityGuard/isCommunityOrAdmin"; |
|
5 |
import {AdminDashboardGuard} from "../utils/adminDashboard.guard"; |
|
6 |
import {LoginGuard} from "../openaireLibrary/login/loginGuard.guard"; |
|
3 |
import {PagesComponent} from "../../openaireLibrary/dashboard/page/pages.component"; |
|
4 |
import {IsCommunityOrAdmin} from "../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin"; |
|
5 |
import {LoginGuard} from "../../openaireLibrary/login/loginGuard.guard"; |
|
7 | 6 |
|
8 | 7 |
@NgModule({ |
9 | 8 |
imports: [ |
10 | 9 |
RouterModule.forChild([ |
11 |
{ path: '', canActivate: [LoginGuard,IsCommunityOrAdmin, AdminDashboardGuard], component: PagesComponent}
|
|
10 |
{ path: '', canActivate: [LoginGuard,IsCommunityOrAdmin], component: PagesComponent} |
|
12 | 11 |
]) |
13 | 12 |
] |
14 | 13 |
}) |
Also available in: Unified diff
[Monitor dashboard | Trunk]
Admin tools:
- move amdin tool components underadmin-tool folder
- create admin tool routing module
- remove guard from each module and put it in admin tool routing module
Piwik:
- add piwik from configuration service and pass it in search, landing, monitor
App component:
- when stakeholder changes: update or reset properties adminToolsCommunity, adminToolsPortalType and init community information