aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-08-28 21:08:39 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-08-28 21:08:47 +0530
commit6dcb5ba8e64e8e353e920ed18f3c4b42e35743f2 (patch)
tree318635d3e4956d70ba3ae66ba6110e8519e82340 /cds-ui/client
parent2e8016248a0ea29e8e4918d32bd263473520eaa3 (diff)
Fixed defect CCSDK-1610
Fixed issue which was adding name feild to workflows on saveMedata action Issue-ID: CCSDK-1610 Change-Id: I00b1224971e48ad1d360e57e58ec241c925e1d47 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts11
1 files changed, 3 insertions, 8 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts
index f49517017..b78213f84 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts
@@ -107,16 +107,11 @@ export class MetadataComponent implements OnInit {
this.loader.showLoader();
this.metadata = Object.assign({}, this.CBAMetadataForm.value);
this.blueprint.metadata = this.metadata;
- /*if (this.blueprint &&
- this.blueprint['topology_template'] &&
- this.blueprint['topology_template'].workflows &&
- this.blueprint['topology_template'].workflows['resource-assignment'] &&
- this.blueprint['topology_template'].workflows['resource-assignment'].name) {
- delete this.blueprint['topology_template'].workflows['resource-assignment'].name;
- }*/
this.filesData.forEach((fileNode) => {
if (fileNode.name.includes(this.blueprintName) && fileNode.name == this.entryDefinition) {
- fileNode.data = JSON.stringify(this.blueprint, null, "\t");
+ let tempNodeData = JSON.parse(fileNode.data);
+ tempNodeData.metadata = this.blueprint.metadata;
+ fileNode.data = JSON.stringify(tempNodeData, null, "\t");
}
});
let blueprintState = {