diff options
author | 2020-10-01 21:17:47 +0200 | |
---|---|---|
committer | 2020-10-01 21:18:51 +0200 | |
commit | 611cbc8440e3371c9d0f98504eeee3f2dbe1917f (patch) | |
tree | 443bade23b87fd404d90f08a459cb7155ebe42ee /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models | |
parent | 8bee90f8177f0a167ff2af58ee156c3189a1d7ba (diff) |
add checkboxs for Required & Template input columns.
add alert message for empty or invalid template file.
Issue-ID: CCSDK-2795
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Ic03b633b0ce51d0193f9c7c589bd69e4b72b2d92
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/mappingAdapter.model.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/mappingAdapter.model.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/mappingAdapter.model.ts index 6d980190e..e63b17fa2 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/mappingAdapter.model.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/mappingAdapter.model.ts @@ -10,12 +10,14 @@ export class MappingAdapter { private dependanciesSource: Map<string, string>) { } ToMapping(): Mapping { - // console.log(this.resourceDictionary.definition.property); + // console.log(this.resourceDictionary.definition.property); const mapping = new Mapping(); mapping.name = this.resourceDictionary.name; mapping.dictionaryName = this.resourceDictionary.name; mapping.property = Object.assign({}, this.resourceDictionary.definition.property); - mapping.inputParam = false; + mapping.inputParam = this.resourceDictionary['input-param'] || false; + // tslint:disable-next-line: no-string-literal + mapping.property['required'] = this.resourceDictionary['required'] || false; mapping.dictionarySource = this.dependanciesSource.get(mapping.name); if (this.dependancies.get(mapping.name)) { mapping.dependencies = this.dependancies.get(mapping.name); |