From 17200edf21bfbd8c41fae0b0d86b7a5f0d3a393b Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 1 Aug 2022 12:18:47 +0300 Subject: [PATCH] Customization: updates for buttons customization add property connectportalUrl - use it for preview and build css methods --- services/layout.service.ts | 4 ++-- utils/properties/env-properties.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/layout.service.ts b/services/layout.service.ts index f5e9f53c..4d00aa10 100644 --- a/services/layout.service.ts +++ b/services/layout.service.ts @@ -20,8 +20,8 @@ export class LayoutService { } } } - createCSS( pid: string, suffix = null, layout = null): Observable { - return this.http.post("http://scoobydoo.di.uoa.gr:4200/build-css/" + (layout?"preview/":"") + pid + (suffix?("/"+ suffix):""), layout ); + createCSS( pid: string, connectPortalUrl:string, suffix = null, layout = null): Observable { + return this.http.post(connectPortalUrl + "/build-css/" + (layout?"preview/":"") + pid + (suffix?("/"+ suffix):""), layout ); } saveLayout(properties: EnvProperties, pid: string, layout: Layout): Observable { diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index 4cd61786..2d2727c4 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -143,4 +143,5 @@ export interface EnvProperties { footerGrantText?: string; egiNotebookLink?: string; portalBuildTime?; + connectPortalUrl?; }