mirror of
https://github.com/nasa/openmct.git
synced 2025-04-16 07:26:53 +00:00
[PlotReborn] Subscribe to realtime after historical load
To prevent realtime data being displayed before historical has loaded, subscribe to realtime after historical loads.
This commit is contained in:
parent
e15f58c1c6
commit
681ffef1d3
@ -94,12 +94,13 @@ define(
|
||||
}
|
||||
|
||||
function startRealTimeFeed(series, seriesIndex, telemetryCapability) {
|
||||
var updater = addTelemetrySeriesToPlotSeries(
|
||||
series,
|
||||
seriesIndex
|
||||
);
|
||||
unsubscribes.push(telemetryCapability.subscribe(updater));
|
||||
return;
|
||||
return function () {
|
||||
var updater = addTelemetrySeriesToPlotSeries(
|
||||
series,
|
||||
seriesIndex
|
||||
);
|
||||
unsubscribes.push(telemetryCapability.subscribe(updater));
|
||||
};
|
||||
}
|
||||
|
||||
function subscribeToDomainObject(domainObject) {
|
||||
@ -118,7 +119,8 @@ define(
|
||||
$scope.series.push(series);
|
||||
seriesIndex = $scope.series.indexOf(series);
|
||||
|
||||
return telemetryCapability.requestData({})
|
||||
return telemetryCapability
|
||||
.requestData({})
|
||||
.then(addTelemetrySeriesToPlotSeries(
|
||||
series,
|
||||
seriesIndex
|
||||
|
Loading…
x
Reference in New Issue
Block a user