mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +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
|
||||
// metadata becomes available.
|
||||
$scope.axes = [
|
||||
new PlotAxis("domain", [], AXIS_DEFAULTS[0]),
|
||||
new PlotAxis("range", [], AXIS_DEFAULTS[1])
|
||||
new PlotAxis("domains", [], AXIS_DEFAULTS[0]),
|
||||
new PlotAxis("ranges", [], AXIS_DEFAULTS[1])
|
||||
];
|
||||
|
||||
// Subscribe to telemetry when a domain object becomes available
|
||||
|
@ -87,7 +87,7 @@ define(
|
||||
}
|
||||
|
||||
metadatas.forEach(function (m) {
|
||||
(m[axisType + 's'] || []).forEach(function (option) {
|
||||
(m[axisType] || []).forEach(function (option) {
|
||||
var key = option.key;
|
||||
if (!optionKeys[key] && !newOptions[key]) {
|
||||
toAdd.push(option);
|
||||
|
Loading…
Reference in New Issue
Block a user