aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping
diff options
context:
space:
mode:
authorAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>2020-06-27 12:45:17 +0200
committerAhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>2020-06-27 12:45:17 +0200
commit83221b2423060db32826065938edeebb5680b30f (patch)
tree4558a5415eaef78b47dadf4cf13450a242f0302f /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping
parentd5ad4b424a1ce83206e787c3663163a2d7297db7 (diff)
Fix template&mapping in view/create
Issue-ID: CCSDK-2450 Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: If7f08f4638b5574bb5d79caa062cb12b4141be10
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts4
1 files changed, 3 insertions, 1 deletions
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 470cf27a0..341d29f66 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
@@ -26,7 +26,9 @@ export class TemplateMappingComponent implements OnInit {
this.creationView = true;
this.listView = false;
console.log('URL contains Id');
- this.sharedService.enableEdit();
+ if (this.pakcageStore.istemplateExist()) {
+ this.sharedService.enableEdit();
+ }
} else {
console.log('Create mode');
this.pakcageStore.clear();