mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 22:23:13 +00:00
don't override time conductor defaults
This commit is contained in:
parent
38457fd262
commit
e25bfb7291
@ -140,17 +140,13 @@ export default function (config) {
|
||||
}
|
||||
}
|
||||
|
||||
openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds);
|
||||
openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds);
|
||||
|
||||
//We are going to set the clockOffsets in fixed time mode since the conductor components down the line need these
|
||||
if (clockOffsets && defaultMode === FIXED_MODE_KEY) {
|
||||
openmct.time.setClockOffsets(clockOffsets);
|
||||
}
|
||||
//We are going to set the fixed time bounds in realtime time mode since the conductor components down the line need these
|
||||
if (defaultBounds && defaultMode === REALTIME_MODE_KEY) {
|
||||
openmct.time.setBounds(clockOffsets);
|
||||
}
|
||||
|
||||
openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds);
|
||||
openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds);
|
||||
|
||||
openmct.on('start', function () {
|
||||
mountComponent(openmct, config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user