From 0f6d8229cff178d1eca82f8cff0c678fafbb1e9c Mon Sep 17 00:00:00 2001 From: Eltanany Shaaban Date: Sun, 10 Jan 2021 17:32:41 +0200 Subject: changing json handling with function inputs Issue-ID: CCSDK-3051 Signed-off-by: Eltanany Shaaban Change-Id: I325d31d18eeb639013b518c007a69799cdb29701 --- .../functions-attribute/functions-attribute.component.html | 8 ++++---- .../designer/functions-attribute/functions-attribute.component.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cds-ui') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html index f00878a74..e619f3a88 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html @@ -81,7 +81,7 @@
-
- +
@@ -277,4 +277,4 @@
- \ No newline at end of file + diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts index a86ade0fa..70ccb7305 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts @@ -139,11 +139,11 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy { if (inputs) { for (const [key, value] of Object.entries(inputs)) { console.log(key + ' - ' + value); - if (typeof value === 'object' || this.isValidJson(value)) { + /* if (typeof value === 'object' || this.isValidJson(value)) { this.currentFuncion.inputs[key] = JSON.stringify(value); - } else { - this.currentFuncion.inputs[key] = value; - } + } else {*/ + this.currentFuncion.inputs[key] = value; + // } } } if (outputs) { -- cgit 1.2.3-korg