mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +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);
|
.then(doExport);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,17 +24,17 @@
|
|||||||
define([], function () {
|
define([], function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function MetadataColumn(property) {
|
function MetadataColumn(propertyName) {
|
||||||
this.property = property;
|
this.propertyName = propertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
MetadataColumn.prototype.name = function () {
|
MetadataColumn.prototype.name = function () {
|
||||||
return this.property.name;
|
return this.propertyName;
|
||||||
};
|
};
|
||||||
|
|
||||||
MetadataColumn.prototype.value = function (domainObject) {
|
MetadataColumn.prototype.value = function (domainObject) {
|
||||||
var properties = domainObject.useCapability('metadata'),
|
var properties = domainObject.useCapability('metadata'),
|
||||||
name = this.property.name,
|
name = this.propertyName,
|
||||||
property = properties.find(function (p) {
|
property = properties.find(function (p) {
|
||||||
return p.name === name;
|
return p.name === name;
|
||||||
});
|
});
|
||||||
|
@ -64,7 +64,7 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < maxRelationships; i += 1) {
|
for (i = 0; i < maxRelationships; i += 1) {
|
||||||
columns.push(new RelationshipColumn(i));
|
columns.push(new ModeColumn(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.domainObjects = domainObjects;
|
this.domainObjects = domainObjects;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user