mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 22:17:49 +00:00
Change variable name to reflect intent
This commit is contained in:
parent
b15ebfd492
commit
dc9e572052
@ -112,7 +112,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<span class="controls">
|
<span class="controls">
|
||||||
<select v-model="selectedOperationKey"
|
<select v-model="selectOperationName"
|
||||||
@change="setInputValueVisibility"
|
@change="setInputValueVisibility"
|
||||||
>
|
>
|
||||||
<option value="">- Select Comparison -</option>
|
<option value="">- Select Comparison -</option>
|
||||||
@ -171,7 +171,7 @@ export default {
|
|||||||
operations: OPERATIONS,
|
operations: OPERATIONS,
|
||||||
selectedMetaDataKey: '',
|
selectedMetaDataKey: '',
|
||||||
selectedTelemetryKey: '',
|
selectedTelemetryKey: '',
|
||||||
selectedOperationKey: '',
|
selectOperationName: '',
|
||||||
selectedOutputKey: '',
|
selectedOutputKey: '',
|
||||||
stringOutputField: false,
|
stringOutputField: false,
|
||||||
comparisonValueField: false,
|
comparisonValueField: false,
|
||||||
@ -225,7 +225,7 @@ export default {
|
|||||||
reset() {
|
reset() {
|
||||||
this.selectedMetaDataKey = '';
|
this.selectedMetaDataKey = '';
|
||||||
this.selectedTelemetryKey = '';
|
this.selectedTelemetryKey = '';
|
||||||
this.selectedOperationKey = '';
|
this.selectOperationName = '';
|
||||||
this.operationValue = '';
|
this.operationValue = '';
|
||||||
},
|
},
|
||||||
validate() {
|
validate() {
|
||||||
@ -262,7 +262,7 @@ export default {
|
|||||||
if (this.condition.definition.criteria.length && this.condition.definition.criteria[0].operation) {
|
if (this.condition.definition.criteria.length && this.condition.definition.criteria[0].operation) {
|
||||||
for (let i=0, ii=this.operations.length; i < ii; i++) {
|
for (let i=0, ii=this.operations.length; i < ii; i++) {
|
||||||
if (this.condition.definition.criteria[0].operation === this.operations[i].name) {
|
if (this.condition.definition.criteria[0].operation === this.operations[i].name) {
|
||||||
this.selectedOperationKey = this.operations[i].name;
|
this.selectOperationName = this.operations[i].name;
|
||||||
this.comparisonValueField = this.operations[i].inputCount > 0;
|
this.comparisonValueField = this.operations[i].inputCount > 0;
|
||||||
if (this.comparisonValueField) {
|
if (this.comparisonValueField) {
|
||||||
this.operationValue = this.condition.definition.criteria[0].input[0];
|
this.operationValue = this.condition.definition.criteria[0].input[0];
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
let criterion = this.condition.definition.criteria[0];
|
let criterion = this.condition.definition.criteria[0];
|
||||||
criterion.key = this.selectedTelemetryKey;
|
criterion.key = this.selectedTelemetryKey;
|
||||||
criterion.metaDataKey = this.selectedMetaDataKey;
|
criterion.metaDataKey = this.selectedMetaDataKey;
|
||||||
criterion.operation = this.selectedOperationKey;
|
criterion.operation = this.selectOperationName;
|
||||||
criterion.input = [this.operationValue];
|
criterion.input = [this.operationValue];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -328,7 +328,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setInputValueVisibility(ev) {
|
setInputValueVisibility(ev) {
|
||||||
for (let i=0, ii=this.operations.length; i < ii; i++) {
|
for (let i=0, ii=this.operations.length; i < ii; i++) {
|
||||||
if (this.selectedOperationKey === this.operations[i].name) {
|
if (this.selectOperationName === this.operations[i].name) {
|
||||||
this.comparisonValueField = this.operations[i].inputCount > 0;
|
this.comparisonValueField = this.operations[i].inputCount > 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user