diff options
author | 2020-09-27 11:29:59 +0200 | |
---|---|---|
committer | 2020-09-27 13:52:12 +0200 | |
commit | 8049a6f71ddfae40b62b23f4307acce65fee8001 (patch) | |
tree | 0868a6e60aae0ea18d4f196c9b8a282620ca3de5 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts | |
parent | f1aafc40ad8f15b61faa3631e5a56fcf7c34bf49 (diff) |
add save & deploy button in designer
Issue-ID: CCSDK-2299
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I35bf9a40633e9bd3f114671912c5e0521e44f754
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts index d8113633d..099d96615 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts @@ -115,6 +115,22 @@ export class DesignerComponent implements OnInit, OnDestroy { this.attributesSideBar = !this.attributesSideBar; } + publishBluePrint() { + this.create(); + this.zipFile.generateAsync({ type: 'blob' }) + .then(blob => { + const formData = new FormData(); + formData.append('file', blob); + this.designerService.publishBlueprint(formData).subscribe(res => { + console.log('Package Deployed...'); + }, error => { + console.log(error); + }, () => { + // this.deployBluePrint = false; + }); + }); + } + // private _toggleSidebar3() { // this.functionAttributeSidebar = !this.functionAttributeSidebar; // } |