From ba409585c172a833dfeb12d11f750496bd91f591 Mon Sep 17 00:00:00 2001 From: argirok Date: Wed, 18 May 2022 13:30:00 +0300 Subject: [PATCH] add eosc data transfer action button in landing update properties --- landingPages/result/resultLanding.component.html | 6 ++++++ landingPages/result/resultLanding.component.ts | 5 ++++- landingPages/result/resultLanding.module.ts | 3 ++- utils/properties/env-properties.ts | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index bf48bee5..c7424b7e 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -66,6 +66,12 @@ + +
  • + +
  • diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index a9cd654c..2088c441 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -136,7 +136,7 @@ export class ResultLandingComponent { public noCommunities: boolean = false; public rightSidebarOffcanvasClicked: boolean = false; - + public egiTransferModalOpen = false; constructor(private _resultLandingService: ResultLandingService, private _vocabulariesService: ISVocabulariesService, private _piwikService: PiwikService, @@ -194,6 +194,9 @@ export class ResultLandingComponent { } this.initMetaAndLinks(this.type); } + if(data["egiTransfer"] && data["egiTransfer"] == 't'){ + this.egiTransferModalOpen = true; + } this.updateDescription(""); this.metricsClicked = false; diff --git a/landingPages/result/resultLanding.module.ts b/landingPages/result/resultLanding.module.ts index 40d4b9f2..f1b2f0d9 100644 --- a/landingPages/result/resultLanding.module.ts +++ b/landingPages/result/resultLanding.module.ts @@ -35,6 +35,7 @@ import {IconsModule} from "../../utils/icons/icons.module"; import {IconsService} from "../../utils/icons/icons.service"; import {graph, link, quotes} from "../../utils/icons/icons"; import {InputModule} from "../../sharedComponents/input/input.module"; +import {EGIDataTransferModule} from "../../../utils/transferData.module"; @NgModule({ imports: [ @@ -43,7 +44,7 @@ import {InputModule} from "../../sharedComponents/input/input.module"; MetricsModule, AltMetricsModule, Schema2jsonldModule, SEOServiceModule, DeletedByInferenceModule, ShowAuthorsModule, HelperModule, ResultLandingUtilsModule, AlertModalModule, AnnotationModule, LandingHeaderModule, NoLoadPaging, ResultPreviewModule, FeedbackModule, TabsModule, LoadingModule, - OrcidModule, MatFormFieldModule, MatSelectModule, IconsModule, InputModule + OrcidModule, MatFormFieldModule, MatSelectModule, IconsModule, InputModule, EGIDataTransferModule ], declarations: [ ResultLandingComponent diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index e710c8c4..5605a6ab 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -13,6 +13,7 @@ export interface EnvProperties { useLongCache?: boolean; showAddThis?: boolean; showContent?: boolean; + enableEoscDataTransfer?:boolean; metricsAPIURL?: string; framesAPIURL?: string; statisticsFrameAPIURL?: string;