Compare commits

...

1 Commits

Author SHA1 Message Date
d98d1879d2 Only resort bounded rows when time system changes 2019-09-20 17:12:09 -07:00

View File

@ -59,13 +59,14 @@ define([
this.requestDataFor = this.requestDataFor.bind(this); this.requestDataFor = this.requestDataFor.bind(this);
this.updateFilters = this.updateFilters.bind(this); this.updateFilters = this.updateFilters.bind(this);
this.buildOptionsFromConfiguration = this.buildOptionsFromConfiguration.bind(this); this.buildOptionsFromConfiguration = this.buildOptionsFromConfiguration.bind(this);
this.sortBoundedRowsByTimeSystem = this.sortBoundedRowsByTimeSystem.bind(this);
this.filterObserver = undefined; this.filterObserver = undefined;
this.createTableRowCollections(); this.createTableRowCollections();
openmct.time.on('bounds', this.refreshData); openmct.time.on('bounds', this.refreshData);
openmct.time.on('timeSystem', this.refreshData); openmct.time.on('timeSystem', this.sortBoundedRowsByTimeSystem);
} }
initialize() { initialize() {
@ -182,11 +183,14 @@ define([
if (!isTick) { if (!isTick) {
this.filteredRows.clear(); this.filteredRows.clear();
this.boundedRows.clear(); this.boundedRows.clear();
this.boundedRows.sortByTimeSystem(this.openmct.time.timeSystem());
this.telemetryObjects.forEach(this.requestDataFor); this.telemetryObjects.forEach(this.requestDataFor);
} }
} }
sortBoundedRowsByTimeSystem(timeSystem) {
this.boundedRows.sortByTimeSystem(timeSystem);
}
clearData() { clearData() {
this.filteredRows.clear(); this.filteredRows.clear();
this.boundedRows.clear(); this.boundedRows.clear();