Commit d51e379e authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Merge branch 'fix-bug-criteria-json' into 'develop'

fixed bug => DONE

See merge request !37
parents 72707f17 e4a2eb72
Pipeline #1350 passed with stages
in 7 minutes and 38 seconds
......@@ -4,10 +4,10 @@
<div class="row">
<div class="col-5">
<input class="form-control" name="path" [formControl]="jsonForm.controls.path" placeholder="Path"
required autocomplete="off">
autocomplete="off">
</div>
<div class="col-2 px-0">
<select class="form-control" name="operator" [formControl]="jsonForm.controls.operator" required>
<select class="form-control" name="operator" [formControl]="jsonForm.controls.operator">
<option></option>
<option value="eq">=</option>
<option value="gt">></option>
......@@ -18,12 +18,15 @@
</div>
<div class="col-5">
<input class="form-control" name="value" [formControl]="jsonForm.controls.value"
placeholder="Value" required autocomplete="off">
placeholder="Value" autocomplete="off">
</div>
</div>
</div>
<div class="col-2 text-center">
<button class="btn btn-outline-success" *ngIf="!jsonForm.disabled" [hidden]="jsonForm.invalid"
(click)="addCriterion()"><i class="fas fa-plus-circle"></i></button>
<button class="btn btn-outline-success" *ngIf="!jsonForm.disabled"
[hidden]="!jsonForm.value.path || !jsonForm.value.operator || !jsonForm.value.value"
(click)="addCriterion()">
<i class="fas fa-plus-circle"></i>
</button>
</div>
</div>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment