aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-10-04 10:28:15 +0200
committerShaaban Ebrahim <shaaban.eltanany.ext@orange.com>2020-10-04 13:18:44 +0000
commite1d518ff0f3b850bd3fc991ff9f33aa9769fe7ce (patch)
tree4b35b8951a84e426efe8fb79af7d688a9c71dcbe /cds-ui
parentebd1fbd630fe6c978335f185c7a49c9b7a95e699 (diff)
improve getting definition from entry definition.
Issue-ID: CCSDK-2298 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: I2a0f91e3c42c50d537570042a0a6146040277f3e
Diffstat (limited to 'cds-ui')
-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);