mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 11:26:42 +00:00
[Events] Reversed viewing order
When viewing an event message generator new messages are now added to the bottom of the display, rather than being added to the top and pushing the other messages down by one. #18.
This commit is contained in:
parent
0feb3b0462
commit
7be7844824
@ -91,11 +91,13 @@ define(
|
|||||||
return "TEMP " + i.toString() + "-" + messages[ind][2] + "[" + domainDelta.toString() + "]";
|
return "TEMP " + i.toString() + "-" + messages[ind][2] + "[" + domainDelta.toString() + "]";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
generatorData.getSeverityValue = function (i) {
|
generatorData.getSeverityValue = function (i) {
|
||||||
var ind = i%messages.length;
|
var ind = i%messages.length;
|
||||||
return messages[ind][0];
|
return messages[ind][0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return generatorData;
|
return generatorData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ define(
|
|||||||
function EventListController($scope, formatter) {
|
function EventListController($scope, formatter) {
|
||||||
var populator;
|
var populator;
|
||||||
|
|
||||||
|
|
||||||
// Get a set of populated, ready-to-display rows for the
|
// Get a set of populated, ready-to-display rows for the
|
||||||
// latest data values.
|
// latest data values.
|
||||||
function getRows(telemetry) {
|
function getRows(telemetry) {
|
||||||
@ -53,6 +52,9 @@ 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
|
||||||
|
@ -342,7 +342,7 @@ define(
|
|||||||
* the second form, it returns an array ordered in
|
* the second form, it returns an array ordered in
|
||||||
* same manner as `getMetadata()` or
|
* same manner as `getMetadata()` or
|
||||||
* `getTelemetryObjects()`; that is, the telemetry
|
* `getTelemetryObjects()`; that is, the telemetry
|
||||||
* response at agiven index will correspond to the
|
* response at a given index will correspond to the
|
||||||
* telemetry-providing domain object at the same index.
|
* telemetry-providing domain object at the same index.
|
||||||
* @returns {Array} an array of responses
|
* @returns {Array} an array of responses
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user