mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 09:58:52 +00:00
Addressing comments - improves input value field visibility logic
This commit is contained in:
parent
1ff4d41b7c
commit
b15ebfd492
@ -327,10 +327,11 @@ export default {
|
||||
}
|
||||
},
|
||||
setInputValueVisibility(ev) {
|
||||
if (this.selectedOperationKey !== 'isUndefined' && this.selectedOperationKey !== 'isDefined') {
|
||||
this.comparisonValueField = true;
|
||||
} else {
|
||||
this.comparisonValueField = false;
|
||||
for (let i=0, ii=this.operations.length; i < ii; i++) {
|
||||
if (this.selectedOperationKey === this.operations[i].name) {
|
||||
this.comparisonValueField = this.operations[i].inputCount > 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//find the criterion being updated and set the operation property
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user