Revision 52995
Added by Myrto Koukouli over 5 years ago
topmenu.component.ts | ||
---|---|---|
17 | 17 |
isUserAdmin: boolean = false; |
18 | 18 |
adminHomePage = process.env.FAQ_HOMEPAGE; |
19 | 19 |
|
20 |
inBeta: boolean; |
|
21 |
|
|
20 | 22 |
constructor(public authService: AuthenticationService) { } |
21 | 23 |
|
22 | 24 |
ngOnInit() { |
23 | 25 |
this.getIsUserLoggedIn(); |
24 | 26 |
this.getUserName(); |
25 | 27 |
this.getIsUserAdmin(); |
28 |
|
|
29 |
const baseUrl = window.location.origin; |
|
30 |
this.inBeta = ( baseUrl.includes('beta') || baseUrl.includes('athenarc') ); |
|
26 | 31 |
} |
27 | 32 |
|
28 | 33 |
|
Also available in: Unified diff
almost ready for release