Skip to content

Commit

Permalink
Merge pull request #119 from nextcloud/fix/noid/task-progress-display
Browse files Browse the repository at this point in the history
Only show 2 digits for the task progress
  • Loading branch information
julien-nc authored Aug 23, 2024
2 parents 9bd6bd6 + ec0f42f commit 0a027a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/RunningEmptyContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="actions">
<div v-if="progress !== null"
class="progress">
<span>{{ progress }}%</span>
<span>{{ formattedProgress }} %</span>
<NcProgressBar
:value="progress" />
</div>
Expand Down Expand Up @@ -64,6 +64,12 @@ export default {
},
computed: {
formattedProgress() {
if (this.progress !== null) {
return this.progress.toFixed(2)
}
return null
},
},
mounted() {
Expand Down

0 comments on commit 0a027a2

Please sign in to comment.