Only allow bindings type for Is In Conditional UI
This commit is contained in:
parent
9287d48ccf
commit
c5196c7a37
|
@ -112,7 +112,7 @@
|
||||||
Constants.OperatorOptions.NotEmpty.value,
|
Constants.OperatorOptions.NotEmpty.value,
|
||||||
]
|
]
|
||||||
condition.noValue = noValueOptions.includes(newOperator)
|
condition.noValue = noValueOptions.includes(newOperator)
|
||||||
if (condition.noValue) {
|
if (condition.noValue || condition.operator === "oneOf") {
|
||||||
condition.referenceValue = null
|
condition.referenceValue = null
|
||||||
condition.valueType = "string"
|
condition.valueType = "string"
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,14 @@
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
disabled={condition.noValue}
|
disabled={condition.noValue}
|
||||||
options={valueTypeOptions}
|
options={condition.operator === "oneOf"
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
value: "string",
|
||||||
|
label: "Binding",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: valueTypeOptions}
|
||||||
bind:value={condition.valueType}
|
bind:value={condition.valueType}
|
||||||
placeholder={null}
|
placeholder={null}
|
||||||
on:change={e => onValueTypeChange(condition, e.detail)}
|
on:change={e => onValueTypeChange(condition, e.detail)}
|
||||||
|
|
|
@ -114,7 +114,7 @@ export const buildLuceneQuery = filter => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === "number" && !Array.isArray(value)) {
|
if (type === "number" && typeof value === "string") {
|
||||||
if (operator === "oneOf") {
|
if (operator === "oneOf") {
|
||||||
value = value.split(",").map(item => parseFloat(item))
|
value = value.split(",").map(item => parseFloat(item))
|
||||||
} else if (!isHbs) {
|
} else if (!isHbs) {
|
||||||
|
|
Loading…
Reference in New Issue