diff options
author | 2020-12-03 17:03:10 +0200 | |
---|---|---|
committer | 2020-12-03 17:03:10 +0200 | |
commit | eafc8865d856cc282e0e0845c67ff232b1a5b805 (patch) | |
tree | 7a1f996fc36c17053456ebb14be861a5283b8d39 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts | |
parent | d578a475277774517207c96772e221e81b6c5d25 (diff) |
add Enrich&Deploy function in designer
Issue-ID: CCSDK-2900
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I098fc6bbb35953fbf3728b3863e7990918305edb
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 | 6 |
1 files changed, 4 insertions, 2 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 3347aa3ac..f3dc2fc4a 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 @@ -493,15 +493,17 @@ export class DesignerComponent implements OnInit, OnDestroy { this.create(); this.zipFile.generateAsync({ type: 'blob' }) .then(blob => { - this.packageCreationService.enrichPackage(blob).subscribe(response => { + this.packageCreationService.enrichAndDeployPackage(blob).subscribe(response => { + // this.packageCreationService.enrichPackage(blob).subscribe(response => { console.log('success'); const blobInfo = new Blob([response], { type: 'application/octet-stream' }); this.packageCreationStore.clear(); this.packageCreationExtractionService.extractBlobToStore(blobInfo); - this.toastService.success('Enriched successfully '); + this.toastService.success('Enriched & Deployed successfully '); }, err => { console.log(err); this.toastService.error(err.message, 'Enrich Failed'); + this.ngxService.stop(); }, () => { this.ngxService.stop(); }); |