mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 03:06:54 +00:00
[TCv2] different defaults by mode
This commit is contained in:
parent
f4e1879a2d
commit
9a72c96ea4
@ -70,6 +70,14 @@ define([
|
||||
{
|
||||
key: 'local-default',
|
||||
name: 'Local 12 hour time system defaults',
|
||||
mode: 'fixed',
|
||||
deltas: {start: FIFTEEN_MINUTES, end: 0},
|
||||
bounds: {start: now - FIFTEEN_MINUTES, end: now}
|
||||
},
|
||||
{
|
||||
key: 'local-default',
|
||||
name: 'Local 12 hour time system defaults',
|
||||
mode: 'follow',
|
||||
deltas: {start: FIFTEEN_MINUTES, end: 0},
|
||||
bounds: {start: now - FIFTEEN_MINUTES, end: now}
|
||||
}
|
||||
|
@ -53,7 +53,9 @@ define(
|
||||
TimeConductorMode.prototype.selectedTimeSystem.apply(this, arguments);
|
||||
|
||||
if (timeSystem) {
|
||||
var defaults = timeSystem.defaults()[0];
|
||||
var defaults = timeSystem.defaults().filter(function (d) {
|
||||
return d.mode === 'fixed';
|
||||
})[0];
|
||||
|
||||
var bounds = {
|
||||
start: defaults.bounds.start,
|
||||
|
@ -87,7 +87,9 @@ define(
|
||||
this.tickSourceUnlisten();
|
||||
}
|
||||
|
||||
var defaults = timeSystem.defaults()[0];
|
||||
var defaults = timeSystem.defaults().filter(function (d) {
|
||||
return d.mode === 'follow';
|
||||
})[0];
|
||||
|
||||
if (arguments.length > 0) {
|
||||
var bounds = {
|
||||
|
@ -70,6 +70,14 @@ define([
|
||||
{
|
||||
key: 'utc-default',
|
||||
name: 'UTC time system defaults',
|
||||
mode: 'follow',
|
||||
deltas: {start: FIFTEEN_MINUTES, end: 0},
|
||||
bounds: {start: now - FIFTEEN_MINUTES, end: now}
|
||||
},
|
||||
{
|
||||
key: 'utc-default',
|
||||
name: 'UTC time system defaults',
|
||||
mode: 'fixed',
|
||||
deltas: {start: FIFTEEN_MINUTES, end: 0},
|
||||
bounds: {start: now - FIFTEEN_MINUTES, end: now}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user