summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-09-14 18:59:48 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-14 18:59:48 +0000
commit6b69173c52a18f7662fe2769575d356cbdc477fe (patch)
tree4759edfc22e5189bf5a0b0843583f778a402824b /cds-ui/designer-client/src/app/modules/feature-modules/packages
parent9a64a1c39c0ec5206fb24ca8d3f323287be751f2 (diff)
parent992af3704682c5bc74873ca23cb39862a697f486 (diff)
Merge "adding deploy feature"
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
index 42b7af9a5..a4a11371e 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
@@ -313,9 +313,10 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
this.create();
this.zipFile.generateAsync({type: 'blob'})
.then(blob => {
- this.packageCreationService.enrichPackage(blob).subscribe(response => {
- console.log('success');
- console.log(response);
+ this.packageCreationService.deploy(blob).subscribe(response => {
+ this.toastService.info('deployed successfully ');
+ const id = response.toString().split('id')[1].split(':')[1].split('"')[1];
+ this.router.navigate(['/packages/package/' + id]);
});
}, error => {
this.toastService.error('error happened when deploying ' + error.message);