Revision 59724
Added by Konstantinos Triantafyllou over 3 years ago
manageStakeholders-routing.module.ts | ||
---|---|---|
2 | 2 |
import {RouterModule} from '@angular/router'; |
3 | 3 |
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; |
4 | 4 |
import {ManageStakeholdersComponent} from "./manageStakeholders.component"; |
5 |
import {AdminDashboardGuard} from "../utils/adminDashboard.guard";
|
|
5 |
import {LoginGuard} from "../openaireLibrary/login/loginGuard.guard";
|
|
6 | 6 |
|
7 | 7 |
@NgModule({ |
8 | 8 |
imports: [ |
... | ... | |
10 | 10 |
{ |
11 | 11 |
path: '', |
12 | 12 |
component: ManageStakeholdersComponent, |
13 |
canActivate: [AdminDashboardGuard],
|
|
13 |
canActivate: [LoginGuard],
|
|
14 | 14 |
canDeactivate: [PreviousRouteRecorder], |
15 | 15 |
data: {hasSidebar: true} |
16 | 16 |
} |
Also available in: Unified diff
[Monitor Dashboard | Trunk]: Add full page loading on app component, fix admin dashboard guard