Compare commits

...

5 Commits

Author SHA1 Message Date
Michael Rogers
7cf45ccce6 Time context get clock 2023-10-30 17:42:25 -05:00
Michael Rogers
6c46f7a87f Pass input-bounds 2023-10-30 16:56:30 -05:00
Michael Rogers
3a9cad6c19 Pass input-bounds 2023-10-30 16:48:42 -05:00
Michael Rogers
2424db4b06 WIP 2023-10-30 16:31:04 -05:00
Michael Rogers
d848cdcce6 WIP: log ITC 2023-10-30 14:43:25 -05:00
2 changed files with 10 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ export default {
emits: ['offsets-updated', 'dismiss-inputs-realtime'],
data() {
const timeSystem = this.openmct.time.getTimeSystem();
console.log({ timeSystem });
const durationFormatter = this.getFormatter(
timeSystem.durationFormat || DEFAULT_DURATION_FORMATTER
);
@@ -209,7 +210,7 @@ export default {
this.formattedBounds.end = this.timeFormatter.format(bounds.end);
},
updateCurrentValue() {
const currentValue = this.openmct.time.getClock()?.currentValue();
const currentValue = this.timeContext.getClock().currentValue();
if (currentValue !== undefined) {
this.setCurrentValue(currentValue);

View File

@@ -50,6 +50,7 @@
v-if="showRealtimeInputs"
class="c-compact-tc__bounds--real-time"
:object-path="objectPath"
:input-bounds="viewBounds"
:read-only="true"
:compact="true"
/>
@@ -174,7 +175,14 @@ export default {
// these may not be set due to older configurations
this.timeOptions.clock = this.timeOptions.clock ?? this.openmct.time.getClock().key;
console.log(
'timeOptions',
this.timeOptions.mode,
this.timeOptions.clock,
this.openmct.time.getClock().key
);
this.timeOptions.mode = this.timeOptions.mode ?? this.openmct.time.getMode();
console.log('timeOptionsAfter', this.timeOptions.mode);
// check for older configurations that stored a key
if (this.timeOptions.mode.key) {