diff options
author | 2020-11-23 11:12:04 +0200 | |
---|---|---|
committer | 2020-11-23 09:43:25 +0000 | |
commit | 404e8af1a9f4de2cad05097a8861560560305d79 (patch) | |
tree | e5ecb8e2392bd93d9887d73db6dfc545511556fd /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation | |
parent | 36db9a541fc469cd59649729243471cf7a8aef3e (diff) |
remove output&properties from JSON if they are empty.
fix delete button in template&mapping.
Issue-ID: CCSDK-2900
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Ice491108959b4daf2a2575feac566c68696032ab
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts index 4087dee3e..e49d7a4cd 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts @@ -282,15 +282,12 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy, AfterViewI confirmDelete() { // Delete from templates this.sharedService.deleteFromList(this.fileName); - this.packageCreationStore.state.templates.files.delete(this.fileToDelete); + console.log('Templates/' + this.fileName + '-template.' + this.templateInfo.ext); + this.packageCreationStore.state.templates.files.delete('Templates/' + this.fileName + '-template.' + this.templateInfo.ext); // Delete from Mapping this.packageCreationStore.state.mapping.files.delete(this.fileToDelete); - if ( - this.packageCreationStore.state.templates.files.size > 0 || - this.packageCreationStore.state.mapping.files.size > 0 - ) { - this.openListView(); - } + this.openListView(); + } uploadFile() { |