mirror of
https://github.com/nasa/openmct.git
synced 2025-03-03 04:49:43 +00:00
removing checkforunits function
This commit is contained in:
parent
5e21f98309
commit
72f7ec1481
@ -156,23 +156,6 @@ export default {
|
|||||||
|
|
||||||
this.$set(this.secondaryTelemetryObjects, primary.key, array);
|
this.$set(this.secondaryTelemetryObjects, primary.key, array);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
checkForUnits() {
|
|
||||||
for(let telemetryObject in this.secondaryTelemetryObjects) {
|
|
||||||
if(this.secondaryTelemetryObjects[telemetryObject]) {
|
|
||||||
let objects = this.secondaryTelemetryObjects[telemetryObject];
|
|
||||||
for(let current of objects) {
|
|
||||||
let metadata = this.openmct.telemetry.getMetadata(current.domainObject);
|
|
||||||
for(let metadatum of metadata.valueMetadatas) {
|
|
||||||
if(metadatum.unit) {
|
|
||||||
this.hasUnits = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.hasUnits = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user