mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 01:48:51 +00:00
[Time Conductor] Simplify passing in of axis type
...in PlotAxis. Also avoids triggering failures of existing tests.
This commit is contained in:
parent
f30a2dd791
commit
5ff2e6b652
@ -233,8 +233,8 @@ define(
|
|||||||
// Initialize axes; will get repopulated when telemetry
|
// Initialize axes; will get repopulated when telemetry
|
||||||
// metadata becomes available.
|
// metadata becomes available.
|
||||||
$scope.axes = [
|
$scope.axes = [
|
||||||
new PlotAxis("domain", [], AXIS_DEFAULTS[0]),
|
new PlotAxis("domains", [], AXIS_DEFAULTS[0]),
|
||||||
new PlotAxis("range", [], AXIS_DEFAULTS[1])
|
new PlotAxis("ranges", [], AXIS_DEFAULTS[1])
|
||||||
];
|
];
|
||||||
|
|
||||||
// Subscribe to telemetry when a domain object becomes available
|
// Subscribe to telemetry when a domain object becomes available
|
||||||
|
@ -87,7 +87,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
metadatas.forEach(function (m) {
|
metadatas.forEach(function (m) {
|
||||||
(m[axisType + 's'] || []).forEach(function (option) {
|
(m[axisType] || []).forEach(function (option) {
|
||||||
var key = option.key;
|
var key = option.key;
|
||||||
if (!optionKeys[key] && !newOptions[key]) {
|
if (!optionKeys[key] && !newOptions[key]) {
|
||||||
toAdd.push(option);
|
toAdd.push(option);
|
||||||
|
Loading…
Reference in New Issue
Block a user