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;
}
},
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() {
this.composition = this.openmct.composition.get(this.domainObject);
this.composition.on('add', this.addItem);

View File

@ -129,7 +129,7 @@ export default {
let ladTable = this.ladTableObjects[index];
this.$delete(this.ladTelemetryObjects, ladTable.key);
this.ladTableObjects.splice(index,1);
this.ladTableObjects.splice(index, 1);
},
reorderLadTables(reorderPlan) {
let oldComposition = this.ladTableObjects.slice();
@ -147,7 +147,7 @@ export default {
array.push(telemetryObject);
this.$set(this.ladTelemetryObjects, ladTable.key, array);
}
};
},
removeTelemetryObject(ladTable) {
return (identifier) => {
@ -157,7 +157,7 @@ export default {
telemetryObjects.splice(index, 1);
this.$set(this.ladTelemetryObjects, ladTable.key, telemetryObjects);
}
};
}
}
};

View File

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