aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.html
diff options
context:
space:
mode:
authorSteffen Klee <steffen.klee@gmail.com>2021-12-13 22:35:19 +0100
committerSteffen Klee <steffen.klee@gmail.com>2021-12-13 22:35:19 +0100
commitfe4993153c168b27969dc0fae500b62504bba52a (patch)
tree5ad3086b8f9eabeccdaf7ce9602d69cef3b36e86 /ui/src/app/app.component.html
parentfix sass syntax for dark mode (diff)
downloadmetube-fe4993153c168b27969dc0fae500b62504bba52a.tar.gz
metube-fe4993153c168b27969dc0fae500b62504bba52a.tar.bz2
metube-fe4993153c168b27969dc0fae500b62504bba52a.zip
Add download link to downloaded file
This adds a simple download link that points to the downloaded file. Note: This makes all files in the download directory (and its sub-directory) available to any user. Closes gh-26
Diffstat (limited to 'ui/src/app/app.component.html')
-rw-r--r--ui/src/app/app.component.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html
index 039aab6..1496bde 100644
--- a/ui/src/app/app.component.html
+++ b/ui/src/app/app.component.html
@@ -112,7 +112,8 @@
<fa-icon *ngIf="download.value.status == 'finished'" [icon]="faCheckCircle" style="color: green;"></fa-icon>
<fa-icon *ngIf="download.value.status == 'error'" [icon]="faTimesCircle" style="color: red;"></fa-icon>
</div>
- <span ngbTooltip="{{download.value.msg}}">{{ download.value.title }}</span>
+ <span ngbTooltip="{{download.value.msg}}"><a *ngIf="!!download.value.filename; else noDownloadLink" href="download/{{download.value.filename}}" target="_blank">{{ download.value.title }}</a></span>
+ <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>
bgstack15