fixed refs and ev bugs

This commit is contained in:
Joel McKinnon 2020-03-26 14:57:55 -07:00
parent 4413c29abb
commit 7282792da1
2 changed files with 4 additions and 5 deletions

View File

@ -43,7 +43,7 @@
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
);
openmct.install(openmct.plugins.Espresso());
openmct.install(openmct.plugins.Snow());
openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.Generator());

View File

@ -194,14 +194,13 @@ export default {
this.telemetryMetadataOptions = this.telemetryMetadata.values();
this.updateOperations(ev);
this.updateOperationInputVisibility();
this.$emit('setTelemetryName', telemetryObject.name)
});
} else {
this.criterion.metadata = '';
}
},
updateOperations(ev) {
if (ev.target === this.$ref.telemetrySelect) {
if (ev && ev.target === this.$refs.telemetrySelect) {
this.clearDependentFields(ev.target);
this.persist();
}
@ -221,10 +220,10 @@ export default {
}
},
clearDependentFields(el) {
if (el === this.$ref.telemetrySelect) {
if (el === this.$refs.telemetrySelect) {
this.criterion.metadata = '';
this.criterion.operation = '';
} else if (el === this.$ref.metadataSelect) {
} else if (el === this.$refs.metadataSelect) {
this.criterion.operation = '';
}
this.criterion.input = [];