Addressing comments - improves input value field visibility logic

This commit is contained in:
Joshi 2020-01-31 13:08:41 -08:00
parent 1ff4d41b7c
commit b15ebfd492

View File

@ -327,10 +327,11 @@ export default {
} }
}, },
setInputValueVisibility(ev) { setInputValueVisibility(ev) {
if (this.selectedOperationKey !== 'isUndefined' && this.selectedOperationKey !== 'isDefined') { for (let i=0, ii=this.operations.length; i < ii; i++) {
this.comparisonValueField = true; if (this.selectedOperationKey === this.operations[i].name) {
} else { this.comparisonValueField = this.operations[i].inputCount > 0;
this.comparisonValueField = false; break;
}
} }
//find the criterion being updated and set the operation property //find the criterion being updated and set the operation property
}, },