Skip to content

Commit

Permalink
Show failed download status unambiguously in DownloadMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
VilppeRiskidev committed Jan 30, 2025
1 parent 7526f8f commit 7ea20ca
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/pages/DownloadMonitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@
<div class="border-at-bottom pad pad--sides">
<div class="card is-shadowless">
<p><strong>{{ downloadObject.initialMods.join(", ") }}</strong></p>
<p v-if="downloadObject.progress < 100">Downloading: {{ downloadObject.modName }}</p>
<p>{{Math.min(Math.floor(downloadObject.progress), 100)}}% complete</p>
<Progress v-if="!downloadObject.failed"
<p v-if="downloadObject.failed">Downloading failed</p>
<p v-else-if="downloadObject.progress < 100">Downloading: {{ downloadObject.modName }}</p>

<p v-if="!downloadObject.failed">{{Math.min(Math.floor(downloadObject.progress), 100)}}% complete</p>

<Progress v-if="downloadObject.failed"
:max='100'
:value='100'
:className="['is-danger']"
/>
<Progress v-else
:max='100'
:value='downloadObject.progress'
:className="['is-info']"
/>
<Progress v-else-if="downloadObject.failed"
:max='100'
:value='100'
:className="['is-danger']"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 7ea20ca

Please sign in to comment.