add delete modal in Template&Mapping 05/109205/1
authorAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Tue, 16 Jun 2020 15:34:01 +0000 (17:34 +0200)
committerAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Tue, 16 Jun 2020 15:34:01 +0000 (17:34 +0200)
Issue-ID: CCSDK-2449

Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I76abe710016745802bad3b024415579f09a9ac18

cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-listing/templ-mapp-listing.component.ts

index 4abc93b..ebfad93 100644 (file)
@@ -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>
index 2e4d8c6..f25dcb1 100644 (file)
@@ -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');
 
     }