diff options
author | 2020-10-21 10:08:19 +0200 | |
---|---|---|
committer | 2020-10-21 11:30:30 +0200 | |
commit | a03d4f6e227d1dbe9f1fa79365f4c6da73f609d9 (patch) | |
tree | ebfcfbd52925594d653b9e2a3c5ad31701089031 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes | |
parent | 83c0cd2c078f89a386701b7f8e680fd3fc70ecfd (diff) |
fixing forming cba package definition
Issue-ID: CCSDK-2928
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: If45b35e9077246faac7490291879df419e0d5ff5
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts index 61de5078b..d6e15ed09 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts @@ -78,19 +78,21 @@ export class DesignerCreationMode extends PackageCreationModes { if (cbaPackage.definitions.imports && cbaPackage.definitions.imports.size > 0) { cbaPackage.definitions.imports.forEach((valueOfFile, key) => { if (!key.includes(cbaPackage.metaData.name)) { - files.push({file: key}); + if (!key.includes('resources_definition_types')) { + files.push({file: key}); + } } else { insideVlbDefinition = JSON.parse(valueOfFile); } }); } - + vlbDefinition.imports = files; if (cbaPackage.definitions && cbaPackage.definitions.dslDefinition && cbaPackage.definitions.dslDefinition.content) { vlbDefinition.dsl_definitions = JSON.parse(cbaPackage.definitions.dslDefinition.content); } - vlbDefinition.imports = files; + // vlbDefinition.imports = files; if (cbaPackage.templateTopology && cbaPackage.templateTopology.content) { vlbDefinition.topology_template = JSON.parse(cbaPackage.templateTopology.content); } else if (insideVlbDefinition && insideVlbDefinition.topology_template) { |