mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
Merge branch 'master' into topic-conditionals
This commit is contained in:
commit
079201273e
@ -56,6 +56,10 @@ define(function () {
|
|||||||
return formattedValue;
|
return formattedValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getParsedValue(telemetryDatum) {
|
||||||
|
return this.formatter.parse(telemetryDatum);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TelemetryTableColumn;
|
return TelemetryTableColumn;
|
||||||
|
@ -42,6 +42,11 @@ define([], function () {
|
|||||||
return column && column.getFormattedValue(this.datum[key]);
|
return column && column.getFormattedValue(this.datum[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getParsedValue(key) {
|
||||||
|
let column = this.columns[key];
|
||||||
|
return column && column.getParsedValue(this.datum[key]);
|
||||||
|
}
|
||||||
|
|
||||||
getCellComponentName(key) {
|
getCellComponentName(key) {
|
||||||
let column = this.columns[key];
|
let column = this.columns[key];
|
||||||
return column &&
|
return column &&
|
||||||
|
@ -201,7 +201,7 @@ define(
|
|||||||
sortBy(sortOptions) {
|
sortBy(sortOptions) {
|
||||||
if (arguments.length > 0) {
|
if (arguments.length > 0) {
|
||||||
this.sortOptions = sortOptions;
|
this.sortOptions = sortOptions;
|
||||||
this.rows = _.sortByOrder(this.rows, 'datum.' + sortOptions.key, sortOptions.direction);
|
this.rows = _.sortByOrder(this.rows, (row) => row.getParsedValue(sortOptions.key) , sortOptions.direction);
|
||||||
this.emit('sort');
|
this.emit('sort');
|
||||||
}
|
}
|
||||||
// Return duplicate to avoid direct modification of underlying object
|
// Return duplicate to avoid direct modification of underlying object
|
||||||
@ -222,7 +222,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
getValueForSortColumn(row) {
|
getValueForSortColumn(row) {
|
||||||
return row.datum[this.sortOptions.key];
|
return row.getParsedValue(this.sortOptions.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
remove(removedRows) {
|
remove(removedRows) {
|
||||||
|
@ -63,6 +63,7 @@ define([
|
|||||||
|
|
||||||
unobserve = this.openmct.objects.observe(openmct.router.path[0], '*', (newObject) => {
|
unobserve = this.openmct.objects.observe(openmct.router.path[0], '*', (newObject) => {
|
||||||
openmct.router.path[0] = newObject;
|
openmct.router.path[0] = newObject;
|
||||||
|
browseObject = newObject;
|
||||||
});
|
});
|
||||||
|
|
||||||
openmct.layout.$refs.browseBar.domainObject = navigatedObject;
|
openmct.layout.$refs.browseBar.domainObject = navigatedObject;
|
||||||
|
Loading…
Reference in New Issue
Block a user