diff options
author | KAPIL SINGAL <ks220y@att.com> | 2020-10-05 06:16:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-10-05 06:16:43 +0000 |
commit | 133afdcc3d4580cb61e1a2134e0ab617c3901eb0 (patch) | |
tree | 3365fb5c2926c769b3022388c910108e887f6c86 /cds-ui/designer-client/src/app/modules/feature-modules | |
parent | d5b29fb6603dfc21bc516238611b1c7cc7e8f57d (diff) | |
parent | e1d518ff0f3b850bd3fc991ff9f33aa9769fe7ce (diff) |
Merge "improve getting definition from entry definition."
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts index cdf89efb9..232590c62 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts @@ -80,7 +80,7 @@ export class PackageCreationExtractionService { public setImports(filename: string, fileData: any, packageName: string) { console.log(filename); - if (filename.includes(packageName)) { + if (filename.includes('Definitions/' + packageName.trim() + '.json')) { let definition = new VlbDefinition(); definition = fileData as VlbDefinition; definition = JSON.parse(fileData); @@ -92,6 +92,7 @@ export class PackageCreationExtractionService { mapOfCustomKeys.set(metadataKey + '', definition.metadata[metadataKey + '']); } } + this.packageCreationStore.changeDslDefinition(dslDefinition); this.packageCreationStore.setCustomKeys(mapOfCustomKeys); this.setPackageDescription(definition.metadata.template_description); |