From 7eaca1fd68638e301e12b565036f4ba76800e710 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Mon, 14 Sep 2020 11:22:29 +0200 Subject: change beahvior of edit enable editing in package version only Issue-ID: CCSDK-2336 Signed-off-by: ShaabanEltanany Change-Id: I5878b463f08dc3575ea90cd65611389eacbb8b4f --- .../configuration-dashboard/configuration-dashboard.component.ts | 5 +++-- .../package-creation/metadata-tab/metadata-tab.component.html | 2 +- .../packages/package-creation/metadata-tab/metadata-tab.component.ts | 3 ++- .../packages-dashboard/filter-by-tags/filter-by-tags.component.ts | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules') 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 09434bc17..42b7af9a5 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 @@ -169,10 +169,11 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl } editBluePrint() { - if (this.cbaPackage) { + this.configurationDashboardService.deletePackage(this.viewedPackage.id).subscribe(res => { this.formTreeData(); this.saveBluePrintToDataBase(); - } + + }); } private formTreeData() { diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/metadata-tab/metadata-tab.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/metadata-tab/metadata-tab.component.html index 2c98d206a..16bf7fccd 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/metadata-tab/metadata-tab.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/metadata-tab/metadata-tab.component.html @@ -33,7 +33,7 @@
-