Skip to content

Commit

Permalink
fix(platform): App push to project fails
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanlekic committed Nov 13, 2020
1 parent 5ae3719 commit f0f51a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import {SystemService} from "../../../platform-providers/system.service";
<div class="description">
<p>
An open-source integrated development environment for the
<a #cwlLink href="http://www.commonwl.org"
(click)="system.openLink(cwlLink.href); false;">
Common Workflow Language
</a>
</p>
<p>
Expand Down Expand Up @@ -96,7 +96,7 @@ import {SystemService} from "../../../platform-providers/system.service";
<hr>
<span class="text-muted">
Copyright 2017 Seven Bridges
Copyright 2017-2020 Seven Bridges
</span>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/app/repository/platform-repository.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,12 @@ export class PlatformRepositoryService {


createApp(appID: string, content: string): Promise<string> {

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();
}

Expand Down

0 comments on commit f0f51a6

Please sign in to comment.