summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/designer-client')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html8
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts8
2 files changed, 8 insertions, 8 deletions
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 @@
<div class="attribute-wrap"
*ngFor="let requiredInput of getKeys(requiredInputs); let i=index">
<!--string-->
- <div *ngIf="getValue(requiredInput,requiredInputs).type=='string'"
+ <div *ngIf="getValue(requiredInput,requiredInputs).type=='string' || getValue(requiredInput,requiredInputs).type=='json'"
class="form-group">
<label for="exampleInputEmail1">{{ requiredInput }}<i
class="icon-required-star" type="button"
@@ -90,7 +90,7 @@
<input [(ngModel)]="currentFuncion['inputs'][requiredInput]" type="text"
class="form-control">
</div>
- <!--JSON-->
+ <!--JSON
<div *ngIf="getValue(requiredInput,requiredInputs).type=='json'"
class="form-group">
<label for="exampleInputEmail1">{{ requiredInput }}<i
@@ -100,7 +100,7 @@
<textarea style="height: 120px;" (change)="bind(requiredInput,$event)"
[value]="currentFuncion['inputs'][requiredInput]"
class="form-control"></textarea>
- </div>
+ </div>-->
<!-- Integer -->
<div class="form-group"
*ngIf="getValue(requiredInput,requiredInputs).type=='integer'">
@@ -277,4 +277,4 @@
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>
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) {