Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Henry <akhenry@gmail.com>2019-09-21 03:12:09 +0300
committerAndrew Henry <akhenry@gmail.com>2019-09-21 03:12:09 +0300
commitd98d1879d26f1407a50b8956e880c4ac662e72c7 (patch)
tree8f65973d25a5df715bdb6da47d470373ae290156
parent45164a2f68fa90e6cf7046fd1d10660dda406eb0 (diff)
Only resort bounded rows when time system changestables-time-system
-rw-r--r--src/plugins/telemetryTable/TelemetryTable.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/telemetryTable/TelemetryTable.js b/src/plugins/telemetryTable/TelemetryTable.js
index 494a13272..cf952e75a 100644
--- a/src/plugins/telemetryTable/TelemetryTable.js
+++ b/src/plugins/telemetryTable/TelemetryTable.js
@@ -59,13 +59,14 @@ define([
this.requestDataFor = this.requestDataFor.bind(this);
this.updateFilters = this.updateFilters.bind(this);
this.buildOptionsFromConfiguration = this.buildOptionsFromConfiguration.bind(this);
+ this.sortBoundedRowsByTimeSystem = this.sortBoundedRowsByTimeSystem.bind(this);
this.filterObserver = undefined;
this.createTableRowCollections();
openmct.time.on('bounds', this.refreshData);
- openmct.time.on('timeSystem', this.refreshData);
+ openmct.time.on('timeSystem', this.sortBoundedRowsByTimeSystem);
}
initialize() {
@@ -182,11 +183,14 @@ define([
if (!isTick) {
this.filteredRows.clear();
this.boundedRows.clear();
- this.boundedRows.sortByTimeSystem(this.openmct.time.timeSystem());
this.telemetryObjects.forEach(this.requestDataFor);
}
}
+ sortBoundedRowsByTimeSystem(timeSystem) {
+ this.boundedRows.sortByTimeSystem(timeSystem);
+ }
+
clearData() {
this.filteredRows.clear();
this.boundedRows.clear();