mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 01:18:57 +00:00
[Tables] Restored telemetry datum field 'name'. Fixed bug with default sort not working
This commit is contained in:
@ -122,7 +122,11 @@ define(
|
||||
$scope.$watchCollection('filters', function () {
|
||||
self.setRows($scope.rows);
|
||||
});
|
||||
$scope.$watch('headers', this.setHeaders);
|
||||
$scope.$watch('headers', function (newHeaders, oldHeaders) {
|
||||
if (newHeaders !== oldHeaders) {
|
||||
this.setHeaders(newHeaders);
|
||||
}
|
||||
}.bind(this));
|
||||
$scope.$watch('rows', this.setRows);
|
||||
|
||||
/*
|
||||
|
@ -240,6 +240,8 @@ define(
|
||||
TelemetryTableController.prototype.loadColumns = function (objects) {
|
||||
var telemetryApi = this.openmct.telemetry;
|
||||
|
||||
this.$scope.headers = [];
|
||||
|
||||
if (objects.length > 0) {
|
||||
var metadatas = objects.map(telemetryApi.getMetadata.bind(telemetryApi));
|
||||
var allColumns = telemetryApi.commonValuesForHints(metadatas, []);
|
||||
@ -437,8 +439,6 @@ define(
|
||||
return Promise.resolve(objects);
|
||||
}
|
||||
}
|
||||
|
||||
scope.headers = [];
|
||||
scope.rows = [];
|
||||
|
||||
return getDomainObjects()
|
||||
|
Reference in New Issue
Block a user