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
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -15,6 +15,7 @@ interface Download {
|
||||
url: string,
|
||||
status: string;
|
||||
msg: string;
|
||||
filename: string;
|
||||
quality: string;
|
||||
percent: number;
|
||||
speed: number;
|
||||
|
||||
Reference in New Issue
Block a user