more more lint fixes

This commit is contained in:
Jamie Vigliotta
2020-08-14 10:55:01 -07:00
parent 6e0c1cc674
commit ac6ed5dd01
3 changed files with 5 additions and 13 deletions

View File

@ -68,16 +68,6 @@ export default {
return itemsWithUnits.length !== 0; return itemsWithUnits.length !== 0;
} }
}, },
computed: {
hasUnits() {
let itemsWithUnits = this.items.filter((item) => {
let metadata = this.openmct.telemetry.getMetadata(item.domainObject);
return this.metadataHasUnits(metadata.valueMetadatas);
});
return itemsWithUnits.length !== 0;
}
},
mounted() { mounted() {
this.composition = this.openmct.composition.get(this.domainObject); this.composition = this.openmct.composition.get(this.domainObject);
this.composition.on('add', this.addItem); this.composition.on('add', this.addItem);

View File

@ -147,7 +147,7 @@ export default {
array.push(telemetryObject); array.push(telemetryObject);
this.$set(this.ladTelemetryObjects, ladTable.key, array); this.$set(this.ladTelemetryObjects, ladTable.key, array);
} };
}, },
removeTelemetryObject(ladTable) { removeTelemetryObject(ladTable) {
return (identifier) => { return (identifier) => {
@ -157,7 +157,7 @@ export default {
telemetryObjects.splice(index, 1); telemetryObjects.splice(index, 1);
this.$set(this.ladTelemetryObjects, ladTable.key, telemetryObjects); this.$set(this.ladTelemetryObjects, ladTable.key, telemetryObjects);
} };
} }
} }
}; };

View File

@ -160,6 +160,7 @@ export default {
if (formKey) { if (formKey) {
property = property + "." + formKey; property = property + "." + formKey;
} }
return _.get(domainObject, property); return _.get(domainObject, property);
}, },
getFormValue(domainObject, toolbarItem) { getFormValue(domainObject, toolbarItem) {
@ -249,6 +250,7 @@ export default {
if (formKey) { if (formKey) {
property = property + "." + formKey; property = property + "." + formKey;
} }
this.openmct.objects.mutate(item.domainObject, property, value); this.openmct.objects.mutate(item.domainObject, property, value);
}, },
triggerMethod(item, event) { triggerMethod(item, event) {