diff --git a/src/plugins/timeConductor/ConductorComponent.vue b/src/plugins/timeConductor/ConductorComponent.vue index bac4fe8979..2cd7beeab3 100644 --- a/src/plugins/timeConductor/ConductorComponent.vue +++ b/src/plugins/timeConductor/ConductorComponent.vue @@ -33,11 +33,11 @@
- +
- + 0; + return { viewBounds: { start: this.bounds.start, @@ -147,7 +149,8 @@ export default { showConductorPopup: false, altPressed: false, isPanning: false, - isZooming: false + isZooming: false, + hasRegisteredClocks }; }, computed: { diff --git a/src/plugins/timeConductor/ConductorPopUp.vue b/src/plugins/timeConductor/ConductorPopUp.vue index 3be7bc64be..6a36943ea5 100644 --- a/src/plugins/timeConductor/ConductorPopUp.vue +++ b/src/plugins/timeConductor/ConductorPopUp.vue @@ -12,12 +12,12 @@ title="Sets the Time Conductor's mode." /> @@ -76,6 +76,13 @@ export default { } }, emits: ['popup-loaded', 'dismiss'], + data() { + const hasRegisteredClocks = this.openmct.time.clocks.size > 0; + + return { + hasRegisteredClocks + }; + }, computed: { position() { const position = { diff --git a/src/plugins/timeConductor/mode-mixin.js b/src/plugins/timeConductor/mode-mixin.js index e3973a23b6..286b2afd30 100644 --- a/src/plugins/timeConductor/mode-mixin.js +++ b/src/plugins/timeConductor/mode-mixin.js @@ -6,7 +6,7 @@ export default { const modes = [FIXED_MODE_KEY]; const clockCount = this.openmct.time.clocks.size; - if (clockCount > 1) { + if (clockCount > 0) { modes.push(REALTIME_MODE_KEY); } diff --git a/src/plugins/utcTimeSystem/plugin.js b/src/plugins/utcTimeSystem/plugin.js index 5eeb1e08ae..8b654fab92 100644 --- a/src/plugins/utcTimeSystem/plugin.js +++ b/src/plugins/utcTimeSystem/plugin.js @@ -33,6 +33,7 @@ export default function () { return function (openmct) { const timeSystem = new UTCTimeSystem(); openmct.time.addTimeSystem(timeSystem); + openmct.time.addClock(new LocalClock(100)); openmct.telemetry.addFormat(new UTCTimeFormat()); openmct.telemetry.addFormat(new DurationFormat());