summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-06-23 05:34:12 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-23 05:34:12 +0000
commit7434214a2126de38769b35896d8e776aeb8fded3 (patch)
tree8dcf85aca133badd26bef8620e71d09b143d40e6 /cds-ui/designer-client/src
parent66f61fb76f5126b60cbd1f5297cecdb2518a70f4 (diff)
parent0d35b884eeaff2317743e337143a94a502a59126 (diff)
Merge "fix issue for deleting files from definition section"
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>