mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +00:00
[Timeline] Fix columns exported
This commit is contained in:
parent
303e870b0d
commit
273cf1c14f
@ -53,7 +53,8 @@ define([
|
||||
);
|
||||
}
|
||||
|
||||
return new TimelineTraverser().buildObjectList()
|
||||
return new TimelineTraverser(this.domainObject)
|
||||
.buildObjectList()
|
||||
.then(doExport);
|
||||
};
|
||||
|
||||
|
@ -24,17 +24,17 @@
|
||||
define([], function () {
|
||||
"use strict";
|
||||
|
||||
function MetadataColumn(property) {
|
||||
this.property = property;
|
||||
function MetadataColumn(propertyName) {
|
||||
this.propertyName = propertyName;
|
||||
}
|
||||
|
||||
MetadataColumn.prototype.name = function () {
|
||||
return this.property.name;
|
||||
return this.propertyName;
|
||||
};
|
||||
|
||||
MetadataColumn.prototype.value = function (domainObject) {
|
||||
var properties = domainObject.useCapability('metadata'),
|
||||
name = this.property.name,
|
||||
name = this.propertyName,
|
||||
property = properties.find(function (p) {
|
||||
return p.name === name;
|
||||
});
|
||||
|
@ -64,7 +64,7 @@ define([
|
||||
}
|
||||
|
||||
for (i = 0; i < maxRelationships; i += 1) {
|
||||
columns.push(new RelationshipColumn(i));
|
||||
columns.push(new ModeColumn(i));
|
||||
}
|
||||
|
||||
this.domainObjects = domainObjects;
|
||||
|
Loading…
Reference in New Issue
Block a user