From 3e03b3a61705154cea6fbdff3c81b1c785d66515 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 21 Apr 2021 11:13:07 +0000 Subject: [PATCH] [Trunk | Explore]: 1. app.component.ts: [Bug fix] Update url for "Manage helptexts" button (use adminPortalURL property). 2. environment.beta.ts & environment.prod.ts & environment.test.ts & environment.ts: Add property "adminPortalURL". git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@60940 d315682c-612b-4755-9ff5-7f18f6832af3 --- explore/src/app/app.component.ts | 4 +--- explore/src/environments/environment.beta.ts | 1 + explore/src/environments/environment.prod.ts | 1 + explore/src/environments/environment.test.ts | 1 + explore/src/environments/environment.ts | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/explore/src/app/app.component.ts b/explore/src/app/app.component.ts index 203bd446..d971e853 100644 --- a/explore/src/app/app.component.ts +++ b/explore/src/app/app.component.ts @@ -144,9 +144,7 @@ export class AppComponent { ]; if (Session.isPortalAdministrator(this.user)) { this.userMenuItems.push(new MenuItem("", "Manage all links", "", "/claims", false, [], ["/claims"], {})); - this.userMenuItems.push(new MenuItem("", "Manage helptexts", - ((this.properties.environment == "beta") ? "https://beta.admin.connect.openaire.eu/openaire/admin-tools/pages" : "https://admin.explore.openaire.eu/dashboard?communityId=openaire"), "", true, [], [], {})) - + this.userMenuItems.push(new MenuItem("", "Manage helptexts", this.properties.adminPortalURL + "/openaire/admin-tools/pages", "", true, [], [], {})); } else if (Session.isClaimsCurator(this.user)) { this.userMenuItems.push(new MenuItem("", "Manage all links", "", "/claims", false, [], ["/claims"], {})); diff --git a/explore/src/environments/environment.beta.ts b/explore/src/environments/environment.beta.ts index 6d14bcb3..28897d13 100644 --- a/explore/src/environments/environment.beta.ts +++ b/explore/src/environments/environment.beta.ts @@ -120,6 +120,7 @@ export let properties: EnvProperties = { altMetricsAPIURL: "https://api.altmetric.com/v1/doi/", reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P", b2noteAPIURL: 'https://b2note.eudat.eu/', + adminPortalURL: "https://beta.admin.connect.openaire.eu", myOrcidLinksPage: "/my-orcid-links" }; diff --git a/explore/src/environments/environment.prod.ts b/explore/src/environments/environment.prod.ts index 14dfcc33..e54c6b1d 100644 --- a/explore/src/environments/environment.prod.ts +++ b/explore/src/environments/environment.prod.ts @@ -121,6 +121,7 @@ export let properties: EnvProperties = { altMetricsAPIURL: "https://api.altmetric.com/v1/doi/", reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P", b2noteAPIURL: 'https://b2note.eudat.eu/', + adminPortalURL: "https://admin.explore.openaire.eu", myOrcidLinksPage: "/my-orcid-links" }; diff --git a/explore/src/environments/environment.test.ts b/explore/src/environments/environment.test.ts index 74ca0813..183ceac5 100644 --- a/explore/src/environments/environment.test.ts +++ b/explore/src/environments/environment.test.ts @@ -120,6 +120,7 @@ export let properties: EnvProperties = { altMetricsAPIURL: "https://api.altmetric.com/v1/doi/", reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P", b2noteAPIURL: 'https://b2note.eudat.eu/', + adminPortalURL: "https://beta.admin.connect.openaire.eu", myOrcidLinksPage: "/my-orcid-links" }; diff --git a/explore/src/environments/environment.ts b/explore/src/environments/environment.ts index f164298a..352ed491 100644 --- a/explore/src/environments/environment.ts +++ b/explore/src/environments/environment.ts @@ -124,6 +124,7 @@ export let properties: EnvProperties = { reCaptchaSiteKey: "6LcVtFIUAAAAAB2ac6xYivHxYXKoUvYRPi-6_rLu", b2noteAPIURL: 'https://b2note.eudat.eu/', impactFactorsAPIURL: "https://bip-api.imsi.athenarc.gr/paper/scores/batch/", + adminPortalURL: "https://beta.admin.connect.openaire.eu", myOrcidLinksPage: "/my-orcid-links" };