moved persist call into change event method and removed check on $ref

This commit is contained in:
Joel McKinnon 2020-03-26 08:10:35 -07:00
parent f76f537be7
commit 1b680cfaca

View File

@ -171,18 +171,18 @@ 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 && ev.target === this.$refs.metadataSelect) {
this.clearDependentFields(this.$refs.metadataSelect);
let selectedOptionText = this.$refs.metadataSelect.options[this.$refs.metadataSelect.selectedIndex].text;
if (ev && ev.target.classList.contains('js-metadata-select')) {
this.clearDependentFields(ev.target);
this.persist();
}
this.getOperationFormat();
this.persist();
},
updateOperationInputVisibility(ev) {