[Table] Retain rows in scope (#1813)
* [Table] Push rows in as they are added ...such that sorting does not cause real-time table rows to be lost. Fixes #1738 * [Table] Test adding rows * [Table] Fix code style in test https://github.com/nasa/openmct/pull/1813#pullrequestreview-78277635
This commit is contained in:
committed by
Pete Richards
parent
06e93ff520
commit
6bbdfcdfbe
@@ -170,6 +170,9 @@ define(
|
||||
* @param rows
|
||||
*/
|
||||
TelemetryTableController.prototype.addRowsToTable = function (rows) {
|
||||
rows.forEach(function (row) {
|
||||
this.$scope.rows.push(row);
|
||||
}, this);
|
||||
this.$scope.$broadcast('add:rows', rows);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user