aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules
diff options
context:
space:
mode:
authorAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2020-12-07 19:06:10 +0200
committerAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2020-12-07 19:06:59 +0200
commit35a812c143311e382dba1d070c27712f506e84d5 (patch)
tree19ebd7e36a21785d264895fc27087583bb96c6dd /cds-ui/designer-client/src/app/modules
parent0ac5e3da98031d71388328ae519ee5ce4db8269c (diff)
Fix save button after click deploy.
Issue-ID: CCSDK-2070 Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: Ife29e2b58588bb047507487c17a461609f84bab1
Diffstat (limited to 'cds-ui/designer-client/src/app/modules')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts9
1 files changed, 7 insertions, 2 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 96e54d953..e9affecc7 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
@@ -52,6 +52,7 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
dataTarget: any = '';
ngUnsubscribe = new Subject();
private designerState: any;
+ packageId: any;
constructor(
private route: ActivatedRoute,
@@ -63,7 +64,8 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
private designerStore: DesignerStore,
private toastService: ToastrService,
private ngxService: NgxUiLoaderService,
- private packageCreationExtractionService: PackageCreationExtractionService
+ private packageCreationExtractionService: PackageCreationExtractionService,
+ private activatedRoute: ActivatedRoute,
) {
super();
@@ -100,6 +102,9 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
this.metadataClasses = this.metadataClasses.replace('complete', '');
this.isSaveEnabled = false;
}
+ this.activatedRoute.paramMap.subscribe(res => {
+ this.packageId = res.get('id');
+ });
}
@@ -135,7 +140,7 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl
editBluePrint() {
this.ngxService.start();
- this.configurationDashboardService.deletePackage(this.viewedPackage.id).subscribe(res => {
+ this.configurationDashboardService.deletePackage(this.packageId).subscribe(res => {
this.formTreeData();
this.saveBluePrintToDataBase();