Improve download UI

This commit is contained in:
Geomitron
2024-07-11 18:29:34 -05:00
parent 2d9fad5d03
commit 2e08dec589
6 changed files with 62 additions and 16 deletions

View File

@@ -48,6 +48,11 @@ export class DownloadService {
return count ? total / count : 0
}
get currentDownloadText() {
const download = this.downloads.find(d => !d.stale && d.type === 'good')
return download ? `Downloading: ${_.truncate(download.chartName, { length: 80 })}` : ''
}
get anyErrorsExist() {
return this.downloads.find(download => download.type === 'error') ? true : false
}