mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
change back to refs
This commit is contained in:
@ -4,8 +4,8 @@
|
|||||||
<span class="c-cdef__label">{{ setRowLabel }}</span>
|
<span class="c-cdef__label">{{ setRowLabel }}</span>
|
||||||
<span class="c-cdef__controls">
|
<span class="c-cdef__controls">
|
||||||
<span class="c-cdef__control">
|
<span class="c-cdef__control">
|
||||||
<select v-model="criterion.telemetry"
|
<select ref="telemetrySelect"
|
||||||
class="js-telemetry-select"
|
v-model="criterion.telemetry"
|
||||||
@change="updateMetadataOptions"
|
@change="updateMetadataOptions"
|
||||||
>
|
>
|
||||||
<option value="">- Select Telemetry -</option>
|
<option value="">- Select Telemetry -</option>
|
||||||
@ -20,8 +20,8 @@
|
|||||||
<span v-if="criterion.telemetry"
|
<span v-if="criterion.telemetry"
|
||||||
class="c-cdef__control"
|
class="c-cdef__control"
|
||||||
>
|
>
|
||||||
<select v-model="criterion.metadata"
|
<select ref="metadataSelect"
|
||||||
class="js-metadata-select"
|
v-model="criterion.metadata"
|
||||||
@change="updateOperations"
|
@change="updateOperations"
|
||||||
>
|
>
|
||||||
<option value="">- Select Field -</option>
|
<option value="">- Select Field -</option>
|
||||||
@ -178,7 +178,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateOperations(ev) {
|
updateOperations(ev) {
|
||||||
if (ev && ev.target.classList.contains('js-metadata-select')) {
|
if (ev.target === this.$ref.telemetrySelect) {
|
||||||
this.clearDependentFields(ev.target);
|
this.clearDependentFields(ev.target);
|
||||||
this.persist();
|
this.persist();
|
||||||
}
|
}
|
||||||
@ -199,10 +199,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
clearDependentFields(el) {
|
clearDependentFields(el) {
|
||||||
if (el.classList.contains('js-telemetry-select')) {
|
if (el === this.$ref.telemetrySelect) {
|
||||||
this.criterion.metadata = '';
|
this.criterion.metadata = '';
|
||||||
this.criterion.operation = '';
|
this.criterion.operation = '';
|
||||||
} else if (el.classList.contains('js-metadata-select')) {
|
} else if (el === this.$ref.metadataSelect) {
|
||||||
this.criterion.operation = '';
|
this.criterion.operation = '';
|
||||||
}
|
}
|
||||||
this.criterion.input = [];
|
this.criterion.input = [];
|
||||||
|
Reference in New Issue
Block a user