Skip to content

Commit ec0f42f

Browse files
committed
fix: only show 2 digits for the task progress
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 9bd6bd6 commit ec0f42f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/RunningEmptyContent.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="actions">
77
<div v-if="progress !== null"
88
class="progress">
9-
<span>{{ progress }}%</span>
9+
<span>{{ formattedProgress }} %</span>
1010
<NcProgressBar
1111
:value="progress" />
1212
</div>
@@ -64,6 +64,12 @@ export default {
6464
},
6565
6666
computed: {
67+
formattedProgress() {
68+
if (this.progress !== null) {
69+
return this.progress.toFixed(2)
70+
}
71+
return null
72+
},
6773
},
6874
6975
mounted() {

0 commit comments

Comments
 (0)