mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 01:48:51 +00:00
making hasUnits computed value more clear
This commit is contained in:
parent
2a9b431c50
commit
0d478d5dfc
@ -72,7 +72,6 @@ export default {
|
|||||||
hasUnits() {
|
hasUnits() {
|
||||||
let ladTables = Object.values(this.secondaryTelemetryObjects);
|
let ladTables = Object.values(this.secondaryTelemetryObjects);
|
||||||
for(let ladTable of ladTables) {
|
for(let ladTable of ladTables) {
|
||||||
console.log('ladTable', ladTable);
|
|
||||||
for(let telemetryObject of ladTable) {
|
for(let telemetryObject of ladTable) {
|
||||||
let metadata = this.openmct.telemetry.getMetadata(telemetryObject.domainObject);
|
let metadata = this.openmct.telemetry.getMetadata(telemetryObject.domainObject);
|
||||||
for(let metadatum of metadata.valueMetadatas) {
|
for(let metadatum of metadata.valueMetadatas) {
|
||||||
@ -124,9 +123,8 @@ export default {
|
|||||||
let index = this.primaryTelemetryObjects.findIndex(primary => this.openmct.objects.makeKeyString(identifier) === primary.key),
|
let index = this.primaryTelemetryObjects.findIndex(primary => this.openmct.objects.makeKeyString(identifier) === primary.key),
|
||||||
primary = this.primaryTelemetryObjects[index];
|
primary = this.primaryTelemetryObjects[index];
|
||||||
|
|
||||||
this.$set(this.secondaryTelemetryObjects, primary.key, undefined);
|
this.$delete(this.secondaryTelemetryObjects, primary.key);
|
||||||
this.primaryTelemetryObjects.splice(index,1);
|
this.primaryTelemetryObjects.splice(index,1);
|
||||||
primary = undefined;
|
|
||||||
},
|
},
|
||||||
reorderPrimary(reorderPlan) {
|
reorderPrimary(reorderPlan) {
|
||||||
let oldComposition = this.primaryTelemetryObjects.slice();
|
let oldComposition = this.primaryTelemetryObjects.slice();
|
||||||
|
Loading…
Reference in New Issue
Block a user