Customization: updates for buttons customization

add property connectportalUrl - use it for preview and build css methods
This commit is contained in:
argirok 2022-08-01 12:18:47 +03:00
parent a41ef51cda
commit 17200edf21
2 changed files with 3 additions and 2 deletions

View File

@ -20,8 +20,8 @@ export class LayoutService {
} }
} }
} }
createCSS( pid: string, suffix = null, layout = null): Observable<any> { createCSS( pid: string, connectPortalUrl:string, suffix = null, layout = null): Observable<any> {
return this.http.post("http://scoobydoo.di.uoa.gr:4200/build-css/" + (layout?"preview/":"") + pid + (suffix?("/"+ suffix):""), layout ); return this.http.post(connectPortalUrl + "/build-css/" + (layout?"preview/":"") + pid + (suffix?("/"+ suffix):""), layout );
} }
saveLayout(properties: EnvProperties, pid: string, layout: Layout): Observable<Layout> { saveLayout(properties: EnvProperties, pid: string, layout: Layout): Observable<Layout> {

View File

@ -143,4 +143,5 @@ export interface EnvProperties {
footerGrantText?: string; footerGrantText?: string;
egiNotebookLink?: string; egiNotebookLink?: string;
portalBuildTime?; portalBuildTime?;
connectPortalUrl?;
} }