summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-10-05 06:16:43 +0000
committerGerrit Code Review <gerrit@onap.org>2020-10-05 06:16:43 +0000
commit133afdcc3d4580cb61e1a2134e0ab617c3901eb0 (patch)
tree3365fb5c2926c769b3022388c910108e887f6c86 /cds-ui/designer-client/src
parentd5b29fb6603dfc21bc516238611b1c7cc7e8f57d (diff)
parente1d518ff0f3b850bd3fc991ff9f33aa9769fe7ce (diff)
Merge "improve getting definition from entry definition."
Diffstat (limited to 'cds-ui/designer-client/src')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts3
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);