22import {getJson } from " ../../utils/requests" ;
33import {STATUS_DATA_URL } from " ../../urls" ;
44import {withLoading } from " ../../utils/loading" ;
5- import {formatDuration } from " ../../utils/formatting" ;
5+ import {formatSecondsAsDuration } from " ../../utils/formatting" ;
66import {computed , ref , Ref } from " vue" ;
77import {
88 Artifact ,
@@ -275,7 +275,9 @@ loadStatus(loading);
275275 <td >
276276 {{ format(currentRun.expected_end, "HH:mm") }}
277277 </td >
278- <td >{{ timeLeft <= 0 ? "?" : formatDuration(timeLeft) }}</td >
278+ <td >
279+ {{ timeLeft <= 0 ? "?" : formatSecondsAsDuration(timeLeft) }}
280+ </td >
279281 </tr >
280282 </tbody >
281283 </table >
@@ -307,11 +309,11 @@ loadStatus(loading);
307309 {{
308310 step.current_progress == 0
309311 ? ""
310- : formatDuration (step.current_progress)
312+ : formatSecondsAsDuration (step.current_progress)
311313 }}
312314 </td >
313315 <td class =" aligned" >
314- {{ formatDuration (step.expected_duration) }}
316+ {{ formatSecondsAsDuration (step.expected_duration) }}
315317 </td >
316318 </tr >
317319 </tbody >
@@ -322,7 +324,7 @@ loadStatus(loading);
322324 <div >
323325 Last collection finished at
324326 {{ fromUnixTime(lastFinishedRun.finished_at).toLocaleString() }} ({{
325- formatDuration (
327+ formatSecondsAsDuration (
326328 differenceInSeconds(
327329 new Date(),
328330 fromUnixTime(lastFinishedRun.finished_at)
@@ -373,7 +375,7 @@ loadStatus(loading);
373375 }}<template v-if =" item .end_estimated " > (est.)</template >
374376 </td >
375377 <td v-if =" item.duration !== null" >
376- {{ formatDuration (item.duration) }}
378+ {{ formatSecondsAsDuration (item.duration) }}
377379 </td >
378380 <td v-else class =" centered" >-</td >
379381 <td v-if =" item.errors.length > 0" >
0 commit comments