From 83348a50fb3871e0c0c2c5cd6f9f6a80e55450f9 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 8 Jan 2024 17:12:04 +0200 Subject: [PATCH] [master | ADDED]: Add sandbox badge in beta and pilot for other environments. --- src/app/app.component.ts | 12 +++++++++++- src/app/openaireLibrary | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 72af219..39ee1a5 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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){ diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index ab0ae37..d61a70c 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit ab0ae376b960c9c0cc9e45c47c0a6bb95499e3c8 +Subproject commit d61a70cc5ac4ea47c03f7d75cf7bfd751aa547d6