From f0f51a6c9d15472d6c02a7dec71d796be0a220d7 Mon Sep 17 00:00:00 2001 From: marijanlekic Date: Fri, 13 Nov 2020 11:56:21 +0100 Subject: [PATCH] fix(platform): App push to project fails --- .../modals/about-page-modal/about-page-modal.component.ts | 6 +++--- src/app/repository/platform-repository.service.ts | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/core/modals/about-page-modal/about-page-modal.component.ts b/src/app/core/modals/about-page-modal/about-page-modal.component.ts index 8d7478a0b..e49cc3681 100644 --- a/src/app/core/modals/about-page-modal/about-page-modal.component.ts +++ b/src/app/core/modals/about-page-modal/about-page-modal.component.ts @@ -24,12 +24,12 @@ import {SystemService} from "../../../platform-providers/system.service";

An open-source integrated development environment for the - + Common Workflow Language - +

@@ -96,7 +96,7 @@ import {SystemService} from "../../../platform-providers/system.service";


- Copyright 2017 Seven Bridges + Copyright 2017-2020 Seven Bridges
diff --git a/src/app/repository/platform-repository.service.ts b/src/app/repository/platform-repository.service.ts index 50b3c505a..9bf973de8 100644 --- a/src/app/repository/platform-repository.service.ts +++ b/src/app/repository/platform-repository.service.ts @@ -187,9 +187,12 @@ export class PlatformRepositoryService { createApp(appID: string, content: string): Promise { + + const appContent = Yaml.safeLoad(content, { json: true } as LoadOptions); + return this.ipc.request("createPlatformApp", { id: appID, - content: content + content: JSON.stringify(appContent, null, 4) }).toPromise(); }