[master | ADDED]: Add sandbox badge in beta and pilot for other environments.

This commit is contained in:
Konstantinos Triantafyllou 2024-01-08 17:12:04 +02:00
parent 668bf01ca3
commit 83348a50fb
2 changed files with 12 additions and 2 deletions

View File

@ -81,7 +81,7 @@ export class AppComponent extends ResearcherBaseComponent implements OnInit {
logoUrl: 'assets/logo/main.svg', logoUrl: 'assets/logo/main.svg',
logoSmallUrl: 'assets/logo/small.svg', logoSmallUrl: 'assets/logo/small.svg',
position: 'left', position: 'left',
badge: true, badge: true
}; };
menuItems: MenuItem[] = []; menuItems: MenuItem[] = [];
userMenuItems: MenuItem[] = []; userMenuItems: MenuItem[] = [];
@ -117,6 +117,16 @@ export class AppComponent extends ResearcherBaseComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.isClient = typeof document !== 'undefined'; 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.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
this.user = user; this.user = user;
if(user){ if(user){

@ -1 +1 @@
Subproject commit ab0ae376b960c9c0cc9e45c47c0a6bb95499e3c8 Subproject commit d61a70cc5ac4ea47c03f7d75cf7bfd751aa547d6