diff options
author | 2020-12-15 20:12:47 +0000 | |
---|---|---|
committer | 2020-12-15 20:12:47 +0000 | |
commit | a0c98da2730a1e7883ff29f461db27506189a843 (patch) | |
tree | 1562d049a2eb9ccc76dee04060924b76919c72d6 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html | |
parent | 3b5fe8ee609afae620268b591f6b707a377b1e81 (diff) | |
parent | fc1e10df3b4be3520092f4dafa11f85efe4594a6 (diff) |
Merge "handle json inputs in function attributes"
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html | 32 |
1 files changed, 21 insertions, 11 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 ded7e5f23..f00878a74 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 @@ -59,8 +59,7 @@ <div class="custom-control custom-radio custom-control-inline"> <input type="radio" id="functionRadioInline" name="functionRadioInline" [checked]="!currentFuncion['inputs']['artifact-prefix-names']?.get_input" - (click)="setArtifact(true)" - class="custom-control-input"> + (click)="setArtifact(true)" class="custom-control-input"> <label class="custom-control-label" for="functionRadioInline">Pre-defined Template</label> </div> @@ -82,7 +81,7 @@ <div class="attribute-wrap" *ngFor="let requiredInput of getKeys(requiredInputs); let i=index"> <!--string--> - <div *ngIf="getValue(requiredInput,requiredInputs).type=='string' || getValue(requiredInput,requiredInputs).type=='json'" + <div *ngIf="getValue(requiredInput,requiredInputs).type=='string'" class="form-group"> <label for="exampleInputEmail1">{{ requiredInput }}<i class="icon-required-star" type="button" @@ -91,6 +90,17 @@ <input [(ngModel)]="currentFuncion['inputs'][requiredInput]" type="text" class="form-control"> </div> + <!--JSON--> + <div *ngIf="getValue(requiredInput,requiredInputs).type=='json'" + class="form-group"> + <label for="exampleInputEmail1">{{ requiredInput }}<i + class="icon-required-star" + [ngClass]="{'optional-attribute' : getValue(requiredInput,requiredInputs).required==false}" + aria-hidden="true"></i></label> + <textarea style="height: 120px;" (change)="bind(requiredInput,$event)" + [value]="currentFuncion['inputs'][requiredInput]" + class="form-control"></textarea> + </div> <!-- Integer --> <div class="form-group" *ngIf="getValue(requiredInput,requiredInputs).type=='integer'"> @@ -207,7 +217,7 @@ </div> </div> </div> - <br/> + <br /> <button class="btn btn-select-template m-auto" (click)="saveFunctionData()">Save</button> </div> @@ -225,13 +235,13 @@ </div> <div class="modal-body createAttributeTabs"> <div class="row"> - <div class="col-6" *ngFor="let file of getKeys(templateAndMappingMap)"> - <a class="template-mapping-list float" [class.active]="selectedTemplates.has(file)"> - <p (click)="setTemplate(file)">{{file}}</p> - <span *ngIf="getValue(file,templateAndMappingMap).isMapping">Mapping</span> - <span *ngIf="getValue(file,templateAndMappingMap).isTemplate">Template</span> - </a> - </div> + <div class="col-6" *ngFor="let file of getKeys(templateAndMappingMap)"> + <a class="template-mapping-list float" [class.active]="selectedTemplates.has(file)"> + <p (click)="setTemplate(file)">{{file}}</p> + <span *ngIf="getValue(file,templateAndMappingMap).isMapping">Mapping</span> + <span *ngIf="getValue(file,templateAndMappingMap).isTemplate">Template</span> + </a> + </div> </div> </div> |