File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ const props = defineProps<{
16
16
const control = inject <ControlApi >(' control-api' )
17
17
18
18
const matchTime = computed (() => {
19
- return formatDurationJson (props .protocolEntry .matchTimeElapsed ! )
19
+ return formatDurationJson (props .protocolEntry .matchTimeElapsed ! , {ms: true })
20
+ })
21
+ const stageTime = computed (() => {
22
+ return formatDurationJson (props .protocolEntry .stageTimeElapsed ! , {ms: true })
20
23
})
21
24
22
25
const origin = computed (() => {
@@ -73,7 +76,7 @@ function revert() {
73
76
<span v-if =" hasGameEventOrigins" >)</span >
74
77
</q-item-label >
75
78
<q-item-label caption lines =" 1" >
76
- {{ matchTime }}
79
+ {{ stageTime }} ({{ matchTime }})
77
80
</q-item-label >
78
81
</q-item-section >
79
82
</template >
Original file line number Diff line number Diff line change @@ -120,10 +120,10 @@ export const getRemainingStages = function (fromStage: Referee_StageJson): Refer
120
120
return stages . slice ( idx )
121
121
}
122
122
123
- export const formatDurationJson = function ( duration : DurationJson ) : string {
123
+ export const formatDurationJson = function ( duration : DurationJson , options : { ms : boolean } = { ms : false } ) : string {
124
124
const dur = fromJson ( DurationSchema , duration )
125
125
const milliseconds = Number ( dur . seconds ) * 1000 + dur . nanos / 1000000
126
- return formatDuration ( milliseconds )
126
+ return formatDuration ( milliseconds , options )
127
127
}
128
128
129
129
export const durationSeconds = function ( duration : DurationJson ) : number {
You can’t perform that action at this time.
0 commit comments