mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 05:34:18 +00:00
added string output field
This commit is contained in:
parent
fa0a54eee7
commit
642499d519
@ -47,10 +47,16 @@
|
|||||||
<li>
|
<li>
|
||||||
<label>Output</label>
|
<label>Output</label>
|
||||||
<span class="controls">
|
<span class="controls">
|
||||||
<select v-model="condition.output">
|
<select @change="getOutputBinary">
|
||||||
<option value="false">false</option>
|
<option value="false">False</option>
|
||||||
<option value="true">true</option>
|
<option value="true">True</option>
|
||||||
|
<option value="string">String</option>
|
||||||
</select>
|
</select>
|
||||||
|
<input v-if="stringOutput"
|
||||||
|
class="t-rule-name-input"
|
||||||
|
type="text"
|
||||||
|
@keyup="getOutputString"
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -62,8 +68,8 @@
|
|||||||
<label>Match when</label>
|
<label>Match when</label>
|
||||||
<span class="controls">
|
<span class="controls">
|
||||||
<select>
|
<select>
|
||||||
<option value="all">All criteria are met</option>
|
<option value="all">all criteria are met</option>
|
||||||
<option value="any">Any criteria are met</option>
|
<option value="any">any criteria are met</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@ -135,7 +141,8 @@ export default {
|
|||||||
telemetryMetadata: this.telemetryMetadata,
|
telemetryMetadata: this.telemetryMetadata,
|
||||||
operations: OPERATIONS,
|
operations: OPERATIONS,
|
||||||
selectedMetaDataKey: null,
|
selectedMetaDataKey: null,
|
||||||
selectedOperationKey: null
|
selectedOperationKey: null,
|
||||||
|
stringOutput: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -185,6 +192,17 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.conditionCollection[0].isCurrent = true;
|
this.conditionCollection[0].isCurrent = true;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
getOutputBinary(ev) {
|
||||||
|
if (ev.target.value !== 'string') {
|
||||||
|
this.condition.output = ev.target.value;
|
||||||
|
this.stringOutput = false;
|
||||||
|
} else {
|
||||||
|
this.stringOutput = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getOutputString(ev) {
|
||||||
|
this.condition.output = ev.target.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user