aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui
diff options
context:
space:
mode:
authorAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>2020-06-16 17:34:01 +0200
committerAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>2020-06-16 17:34:01 +0200
commit659025ea329c8e4f395d0a5bbd6a502b12885641 (patch)
treea3a859f72dd254d2307c0053e98413dbb1ec4bb9 /cds-ui
parentfd0084752dfa82159643798711650e9bb52e6160 (diff)
add delete modal in Template&Mapping
Issue-ID: CCSDK-2449 Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: I76abe710016745802bad3b024415579f09a9ac18
Diffstat (limited to 'cds-ui')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html2
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
index 4abc93b55..ebfad93c3 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
@@ -22,7 +22,7 @@
<div class="container">
<div class="creat-action-container">
- <a href="#" class="action-button save" (click)="editBluePrint()">
+ <a class="action-button save" (click)="editBluePrint()">
<i class="icon-save-sm" aria-hidden="true"></i>
<span>Save</span>
</a>
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts
index 2e4d8c6e3..f25dcb1be 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts
@@ -133,6 +133,10 @@ export class TemplMappListingComponent implements OnInit {
if (this.templateAndMappingMap.size <= 0) {
this.openCreationView();
}
+ // Delete from templates
+ this.packageCreationStore.state.templates.files.delete('Templates/' + this.fileToDelete + '-template.vtl');
+ // Delete from Mapping
+ this.packageCreationStore.state.mapping.files.delete('Templates/' + this.fileToDelete + '-mapping.json');
}