[master | ADDED]: Add sandbox badge in beta and pilot for other environments.
This commit is contained in:
parent
668bf01ca3
commit
83348a50fb
|
@ -81,7 +81,7 @@ export class AppComponent extends ResearcherBaseComponent implements OnInit {
|
|||
logoUrl: 'assets/logo/main.svg',
|
||||
logoSmallUrl: 'assets/logo/small.svg',
|
||||
position: 'left',
|
||||
badge: true,
|
||||
badge: true
|
||||
};
|
||||
menuItems: MenuItem[] = [];
|
||||
userMenuItems: MenuItem[] = [];
|
||||
|
@ -117,6 +117,16 @@ export class AppComponent extends ResearcherBaseComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
this.isClient = typeof document !== 'undefined';
|
||||
if(this.properties.environment == 'beta') {
|
||||
this.header.environmentBadge = {
|
||||
asset: 'assets/badge/sandbox.svg',
|
||||
routerLink: '/about'
|
||||
}
|
||||
} else {
|
||||
this.header.environmentBadge = {
|
||||
asset: 'assets/badge/pilot.svg',
|
||||
}
|
||||
}
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
if(user){
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ab0ae376b960c9c0cc9e45c47c0a6bb95499e3c8
|
||||
Subproject commit d61a70cc5ac4ea47c03f7d75cf7bfd751aa547d6
|
Loading…
Reference in New Issue