Skip to content

Commit

Permalink
Update torrent verification indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Aug 15, 2021
1 parent 6100c34 commit c39b074
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
50 changes: 24 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions src/views/components/Torrent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<!-- Verifying -->
<span class="bloc truncate verifying" v-else-if="torrent.status==2">
{{Locale.filters.verifying}}
{{Locale.filters.verifying}} ({{Utils.getPercent(torrent.recheckProgress)}})
</span>

<!-- Queued -->
Expand All @@ -65,12 +65,12 @@

<!-- Size / Percent done -->
<span class="bloc right fit">
{{ Utils.formatBytes(torrent.sizeWhenDone) }} ({{ Utils.getPercent(percentDone) }})
{{ Utils.formatBytes(torrent.sizeWhenDone) }} ({{ Utils.getPercent(torrent.percentDone) }})
</span>
</div>
</div>

<ion-progress-bar :value="percentDone" :color="ProgressBarColors[torrent.status]" aria-hidden="true"></ion-progress-bar>
<ion-progress-bar :value="torrent.percentDone" :color="ProgressBarColors[torrent.status]" aria-hidden="true"></ion-progress-bar>

</div>
</div>
Expand Down Expand Up @@ -132,9 +132,6 @@ export default defineComponent({
}
},
computed: {
percentDone: function(): string {
return this.torrent.status==2 ? this.torrent.recheckProgress : this.torrent.percentDone
},
orderByPosition() {
return UserSettings.state.orderBy=="queuePosition";
}
Expand Down

0 comments on commit c39b074

Please sign in to comment.