From 0d35b884eeaff2317743e337143a94a502a59126 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Mon, 22 Jun 2020 21:10:28 +0200 Subject: fix issue for deleting files from definition section Issue-ID: CCSDK-2402 Signed-off-by: ShaabanEltanany Change-Id: I3da68daf0b06c307d0864391ecc504287842f954 --- .../configuration-dashboard/configuration-dashboard.component.ts | 2 ++ .../package-creation/imports-tab/imports-tab.component.html | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'cds-ui/designer-client') 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 e1e33a39a..471b25383 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 @@ -56,6 +56,7 @@ export class ConfigurationDashboardComponent implements OnInit { if (bluePrintDetailModels) { this.viewedPackage = bluePrintDetailModels[0]; this.downloadCBAPackage(bluePrintDetailModels); + this.packageCreationStore.clear(); } }); } @@ -183,6 +184,7 @@ export class ConfigurationDashboardComponent implements OnInit { create() { + this.zipFile = new JSZip(); FilesContent.getMapOfFilesNamesAndContent().forEach((value, key) => { this.zipFile.folder(key.split('/')[0]); this.zipFile.file(key, value); diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html index c2356a4ee..940177e6a 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html @@ -41,12 +41,12 @@ {{file.key}} - - - \ No newline at end of file + -- cgit 1.2.3-korg