mirror of
https://github.com/nasa/openmct.git
synced 2025-05-11 04:52:57 +00:00
[Events] Changed where row reversal happens
Changed where in the code the row are reveresd (wrt scrolling lists) so that the most recent messages are on the bottom. The rows are now in the correct order from getRows, rather then updateRows. #18.
This commit is contained in:
parent
e7598adcee
commit
54cf5a2c59
@ -54,9 +54,6 @@ define(
|
|||||||
function updateRows() {
|
function updateRows() {
|
||||||
var telemetry = $scope.telemetry;
|
var telemetry = $scope.telemetry;
|
||||||
$scope.rows = telemetry ? getRows(telemetry) : [];
|
$scope.rows = telemetry ? getRows(telemetry) : [];
|
||||||
// We want to display the rows in reverse order
|
|
||||||
// i.e. from the top to the bottom of the page
|
|
||||||
$scope.rows = $scope.rows.reverse();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up columns based on telemetry metadata. This will
|
// Set up columns based on telemetry metadata. This will
|
||||||
|
@ -139,8 +139,10 @@ define(
|
|||||||
|
|
||||||
// Each value will become a row, which will contain
|
// Each value will become a row, which will contain
|
||||||
// some value in each column (rendering by the
|
// some value in each column (rendering by the
|
||||||
// column object itself)
|
// column object itself)
|
||||||
return values.map(function (value) {
|
// Additionally, we want to display the rows in reverse
|
||||||
|
// order. (i.e. from the top to the bottom of the page)
|
||||||
|
return values.map(function (value) {
|
||||||
return columns.map(function (column) {
|
return columns.map(function (column) {
|
||||||
return column.getValue(
|
return column.getValue(
|
||||||
objects[value.objectIndex],
|
objects[value.objectIndex],
|
||||||
@ -148,7 +150,7 @@ define(
|
|||||||
value.pointIndex
|
value.pointIndex
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
}).reverse();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user