Revision 57175
Added by Stefania Martziou over 4 years ago
sidemenu.component.ts | ||
---|---|---|
26 | 26 |
constructor(public authService: AuthenticationService) { } |
27 | 27 |
|
28 | 28 |
ngOnInit() { |
29 |
|
|
30 |
const pathName = window.location.pathname; |
|
31 |
if (pathName.includes('sources')) { |
|
32 |
this.toggle[1] = 1; |
|
33 |
} else if (pathName.includes('compatibility')) { |
|
34 |
this.toggle[2] = 2; |
|
35 |
} else if (pathName.includes('content')) { |
|
36 |
this.toggle[3] = 3; |
|
37 |
} else if (pathName.includes('admin')) { |
|
38 |
this.toggle[4] = 4; |
|
39 |
} |
|
40 |
|
|
29 | 41 |
this.getIsUserLoggedIn(); |
30 | 42 |
this.getUserName(); |
31 | 43 |
this.getIsUserAdmin(); |
Also available in: Unified diff
Fixed the sidebar submenus to remain open after refresh