mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 16:49:42 +00:00
more more lint fixes
This commit is contained in:
@ -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);
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
|||||||
let ladTable = this.ladTableObjects[index];
|
let ladTable = this.ladTableObjects[index];
|
||||||
|
|
||||||
this.$delete(this.ladTelemetryObjects, ladTable.key);
|
this.$delete(this.ladTelemetryObjects, ladTable.key);
|
||||||
this.ladTableObjects.splice(index,1);
|
this.ladTableObjects.splice(index, 1);
|
||||||
},
|
},
|
||||||
reorderLadTables(reorderPlan) {
|
reorderLadTables(reorderPlan) {
|
||||||
let oldComposition = this.ladTableObjects.slice();
|
let oldComposition = this.ladTableObjects.slice();
|
||||||
@ -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);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user