From 366fe0541cd76e93276d20e84db315c591c3cae7 Mon Sep 17 00:00:00 2001 From: AhmedEldeeb50 Date: Mon, 22 Jun 2020 18:07:52 +0200 Subject: add delete button in template&mapping view Issue-ID: CCSDK-2448 Signed-off-by: AhmedEldeeb50 Change-Id: I73691bc19ca4cf330896fe1cf327e3867ab4e1b4 --- .../package-creation/template-mapping/template-mapping.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts index 662d8d3f3..af6ced092 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts @@ -27,6 +27,9 @@ export class TemplateMappingComponent implements OnInit { this.listView = false; console.log('URL contains Id'); this.sharedService.enableEdit(); + if (this.pakcageStore.state.mapping.files.size > 0 || this.pakcageStore.state.templates.files.size > 0) { + this.openListView(); + } } else { console.log('Create mode'); this.pakcageStore.clear(); -- cgit 1.2.3-korg