summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-06-22 21:10:28 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-06-22 22:42:12 +0200
commit0d35b884eeaff2317743e337143a94a502a59126 (patch)
tree33ffaabcfdabec66da2e8040306e5c7c20588bcb /cds-ui/designer-client/src
parentee2c950e05901c92fd45a24898b7e8bb2418bc77 (diff)
fix issue for deleting files from definition section
Issue-ID: CCSDK-2402 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: I3da68daf0b06c307d0864391ecc504287842f954
Diffstat (limited to 'cds-ui/designer-client/src')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts2
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html6
2 files changed, 5 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 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 @@
<i class="icon-file-code"></i> {{file.key}}
</button>
- <a data-toggle="modal" (click)="initDelete(file)" data-target="#exampleModal"
+ <a data-toggle="modal" (click)="initDelete(file)" data-target="#exampleModal1"
class="accordion-delete"><i class="icon-delete-sm"></i></a>
<!-- <a class="accordion-delete" (click)="removeFile(mapIndex)"><i class="icon-delete-sm"></i></a> -->
<!-- Delete Modal -->
- <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
+ <div class="modal fade" id="exampleModal1" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
@@ -162,4 +162,4 @@
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>