mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-07-08 02:55:09 +00:00
Refactor download queue
This commit is contained in:
@@ -12,13 +12,6 @@
|
||||
<i class="redo icon"></i>
|
||||
Retry
|
||||
</button>
|
||||
<button
|
||||
*ngIf="download.type == 'warning'"
|
||||
class="ui right floated labeled icon button"
|
||||
(click)="continueDownload(download.versionID)">
|
||||
<i class="exclamation triangle icon"></i>
|
||||
Download Anyway
|
||||
</button>
|
||||
<div class="header">{{download.header}}</div>
|
||||
<div *ngIf="download.type != 'done'" class="description">{{download.description}}</div>
|
||||
<div *ngIf="download.type == 'done'" class="description">
|
||||
|
||||
@@ -38,11 +38,6 @@ export class DownloadsModalComponent {
|
||||
this.downloadService.retryDownload(versionID)
|
||||
}
|
||||
|
||||
continueDownload(versionID: number) {
|
||||
// TODO: test this
|
||||
this.downloadService.continueDownload(versionID)
|
||||
}
|
||||
|
||||
getBackgroundColor(download: DownloadProgress) {
|
||||
switch (download.type) {
|
||||
case 'good': return 'unset'
|
||||
|
||||
@@ -67,8 +67,4 @@ export class DownloadService {
|
||||
retryDownload(versionID: number) {
|
||||
this.electronService.sendIPC('download', { action: 'retry', versionID })
|
||||
}
|
||||
|
||||
continueDownload(versionID: number) {
|
||||
this.electronService.sendIPC('download', { action: 'continue', versionID })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user