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