aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/app')
-rw-r--r--ui/src/app/app.component.html2
-rw-r--r--ui/src/app/app.component.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html
index 74da172..c0957af 100644
--- a/ui/src/app/app.component.html
+++ b/ui/src/app/app.component.html
@@ -122,7 +122,7 @@
<ng-template #noDownloadLink>{{ download.value.title }}</ng-template>
</td>
<td>
- <button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value.quality)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
+ <button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value.url, download.value.quality)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
</td>
<td>
<a href="{{download.value.url}}" target="_blank"><fa-icon [icon]="faExternalLinkAlt"></fa-icon></a>
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index 2ae880b..a9b46a3 100644
--- a/ui/src/app/app.component.ts
+++ b/ui/src/app/app.component.ts
@@ -130,8 +130,8 @@ export class AppComponent implements AfterViewInit {
});
}
- retryDownload(key: string, quality: string, format: string) {
- this.addDownload(key, quality, format);
+ retryDownload(key: string, url: string, quality: string, format: string) {
+ this.addDownload(url, quality, format);
this.downloads.delById('done', [key]).subscribe();
}
bgstack15