mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 05:34:18 +00:00
wip: addressing review comments
This commit is contained in:
parent
467c57b7c6
commit
1a409afb03
@ -277,6 +277,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.domainObject.configuration.output = this.selectedOutputKey;
|
this.domainObject.configuration.output = this.selectedOutputKey;
|
||||||
}
|
}
|
||||||
|
this.persist();
|
||||||
},
|
},
|
||||||
updateCurrentCondition() {
|
updateCurrentCondition() {
|
||||||
this.$emit('updateCurrentCondition', this.currentConditionIdentifier);
|
this.$emit('updateCurrentCondition', this.currentConditionIdentifier);
|
||||||
|
@ -44,19 +44,16 @@
|
|||||||
{{ option.text }}
|
{{ option.text }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<input v-if="inputCount > 0"
|
<span v-for="(item, inputIndex) in Array, inputCount"
|
||||||
v-model="criterion.input[0]"
|
:key="inputIndex"
|
||||||
class="t-condition-name-input"
|
|
||||||
type="text"
|
|
||||||
@blur="persist"
|
|
||||||
>
|
|
||||||
<span v-if="inputCount === 2">and</span>
|
|
||||||
<input v-if="inputCount === 2"
|
|
||||||
v-model="criterion.input[1]"
|
|
||||||
class="t-condition-name-input"
|
|
||||||
type="text"
|
|
||||||
@blur="persist"
|
|
||||||
>
|
>
|
||||||
|
<input v-model="criterion.input[inputIndex]"
|
||||||
|
class="t-condition-name-input"
|
||||||
|
type="text"
|
||||||
|
@blur="persist"
|
||||||
|
>
|
||||||
|
<span v-if="inputIndex < inputCount-1">and</span>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -76,8 +76,8 @@ export default class TelemetryCriterion extends EventEmitter {
|
|||||||
let params = [];
|
let params = [];
|
||||||
let result = false;
|
let result = false;
|
||||||
params.push(data[this.metadata]);
|
params.push(data[this.metadata]);
|
||||||
if (this.input.length) {
|
if (this.input instanceof Array && this.input.length) {
|
||||||
this.input.forEach(input => {params.push(this.input[0])});
|
this.input.forEach((input) => {params.push(input)});
|
||||||
}
|
}
|
||||||
if (typeof comparator === 'function') {
|
if (typeof comparator === 'function') {
|
||||||
result = comparator(params);
|
result = comparator(params);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user