aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.html
diff options
context:
space:
mode:
authorAlex <alexta69@gmail.com>2023-02-10 23:39:22 +0200
committerGitHub <noreply@github.com>2023-02-10 23:39:22 +0200
commit3c96ed5aee303e3600460bc16678d2f1f547f8e7 (patch)
tree5551ff90a630ace1eaf585d5ccc0fb8edba876af /ui/src/app/app.component.html
parentupgrade dependencies (diff)
parentupgrade dependencies (diff)
downloadmetube-3c96ed5aee303e3600460bc16678d2f1f547f8e7.tar.gz
metube-3c96ed5aee303e3600460bc16678d2f1f547f8e7.tar.bz2
metube-3c96ed5aee303e3600460bc16678d2f1f547f8e7.zip
Merge pull request #178 from cavazzatommaso/download_to_device
Added download button to the ui
Diffstat (limited to 'ui/src/app/app.component.html')
-rw-r--r--ui/src/app/app.component.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html
index 6d59fd4..79d87ca 100644
--- a/ui/src/app/app.component.html
+++ b/ui/src/app/app.component.html
@@ -117,6 +117,7 @@
<th scope="col" style="width: 2rem;"></th>
<th scope="col" style="width: 2rem;"></th>
<th scope="col" style="width: 2rem;"></th>
+ <th scope="col" style="width: 2rem;"></th>
</tr>
</thead>
<tbody>
@@ -136,6 +137,9 @@
<button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value.url, download.value.quality, download.value.folder)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
</td>
<td>
+ <a *ngIf="!!download.value.filename; else noDownloadLink" href="{{buildDownloadLink(download.value)}}" download><fa-icon [icon]="faDownload"></fa-icon></a>
+ </td>
+ <td>
<a href="{{download.value.url}}" target="_blank"><fa-icon [icon]="faExternalLinkAlt"></fa-icon></a>
</td>
<td>
bgstack15