added hid/show selects

This commit is contained in:
Joel McKinnon 2020-02-20 14:59:04 -08:00
parent 2bb2bb6a1b
commit 1b9b7e2345

View File

@ -15,7 +15,9 @@
</option>
</select>
</span>
<span class="controls">
<span v-if="criterion.telemetry"
class="controls"
>
<select v-model="criterion.metadata">
<option value="">- Select Field -</option>
<option v-for="option in telemetryMetadata"
@ -26,7 +28,9 @@
</option>
</select>
</span>
<span class="controls">
<span v-if="criterion.telemetry && criterion.metadata"
class="controls"
>
<select v-model="criterion.operation"
@change="updateOperationInputVisibility"
>
@ -91,6 +95,7 @@ export default {
mounted() {
this.updateMetadataOptions();
this.updateOperationInputVisibility();
console.log('this.criterion.telemetry', this.criterion.telemetry);
},
methods: {
updateMetadataOptions() {