Commit 3c9916bb authored by Kev's avatar Kev

Change job duration label to 'Elapsed time' when in progress

Changelog: changed
parent e9c54058
...@@ -20,6 +20,9 @@ export default { ...@@ -20,6 +20,9 @@ export default {
duration() { duration() {
return timeIntervalInWords(this.job.duration); return timeIntervalInWords(this.job.duration);
}, },
durationTitle() {
return this.job.finished_at ? __('Duration') : __('Elapsed time');
},
erasedAt() { erasedAt() {
return this.timeFormatted(this.job.erased_at); return this.timeFormatted(this.job.erased_at);
}, },
...@@ -76,7 +79,7 @@ export default { ...@@ -76,7 +79,7 @@ export default {
<template> <template>
<div v-if="shouldRenderBlock"> <div v-if="shouldRenderBlock">
<detail-row v-if="job.duration" :value="duration" title="Duration" /> <detail-row v-if="job.duration" :value="duration" :title="durationTitle" />
<detail-row <detail-row
v-if="job.finished_at" v-if="job.finished_at"
:value="finishedAt" :value="finishedAt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment