<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"
<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
<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'">
</div>
</div>
</div>
-</div>
\ No newline at end of file
+</div>
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) {