Skip to content
Snippets Groups Projects
Commit 32ec39d2 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Use 'pending for' for process duration when unscheduled or pending

parent 4da57355
No related branches found
No related tags found
1 merge request!1594Use 'pending for' for process duration when unscheduled or pending
......@@ -34,7 +34,7 @@
<td>
<template v-if="runtime !== null">
<template v-if="!process.finished">
Running for
{{ durationText }}
</template>
<abbr :title="secondsToTimedelta(runtime)">
{{ humanTimedelta(runtime) }}
......@@ -160,6 +160,10 @@ export default {
else if (!['dataset', 'workers', 'template'].includes(this.process.mode)) return 'This process does not have any tasks and cannot be configured'
}
throw new Error('The link should not be disabled!')
},
durationText () {
if (['unscheduled', 'pending'].includes(this.process.state)) return 'Pending for '
return 'Running for '
}
},
methods: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment