aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.html
diff options
context:
space:
mode:
authorRpsl <gmail@rpsl.info>2021-07-29 11:12:40 +0300
committerRpsl <gmail@rpsl.info>2021-07-29 11:12:40 +0300
commitfffba9065acf10f1a2d6a1e2f3bc3aa531b6a8ca (patch)
treee6690b68dfdc8eeb5f48bb016a22f57beea3dba1 /ui/src/app/app.component.html
parentMerge pull request #37 from Rpsl/master (diff)
downloadmetube-fffba9065acf10f1a2d6a1e2f3bc3aa531b6a8ca.tar.gz
metube-fffba9065acf10f1a2d6a1e2f3bc3aa531b6a8ca.tar.bz2
metube-fffba9065acf10f1a2d6a1e2f3bc3aa531b6a8ca.zip
Added retry button for failed download
Diffstat (limited to 'ui/src/app/app.component.html')
-rw-r--r--ui/src/app/app.component.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html
index e1f29d6..2ec41dd 100644
--- a/ui/src/app/app.component.html
+++ b/ui/src/app/app.component.html
@@ -39,7 +39,7 @@
<tr>
<th scope="col" style="width: 1rem;">
<app-master-checkbox #queueMasterCheckbox [id]="'queue'" [list]="downloads.queue" (changed)="queueSelectionChanged($event)"></app-master-checkbox>
- </th>
+ </th>
<th scope="col">
<button type="button" class="btn btn-link px-0 mr-4" disabled #queueDelSelected (click)="delSelectedDownloads('queue')"><fa-icon [icon]="faTrashAlt"></fa-icon>&nbsp; Cancel selected</button>
</th>
@@ -69,13 +69,14 @@
<tr>
<th scope="col" style="width: 1rem;">
<app-master-checkbox #doneMasterCheckbox [id]="'done'" [list]="downloads.done" (changed)="doneSelectionChanged($event)"></app-master-checkbox>
- </th>
+ </th>
<th scope="col">
<button type="button" class="btn btn-link px-0 mr-4" disabled #doneDelSelected (click)="delSelectedDownloads('done')"><fa-icon [icon]="faTrashAlt"></fa-icon>&nbsp; Clear selected</button>
<button type="button" class="btn btn-link px-0 mr-4" disabled #doneClearCompleted (click)="clearCompletedDownloads()"><fa-icon [icon]="faCheckCircle"></fa-icon>&nbsp; Clear completed</button>
<button type="button" class="btn btn-link px-0 mr-4" disabled #doneClearFailed (click)="clearFailedDownloads()"><fa-icon [icon]="faTimesCircle"></fa-icon>&nbsp; Clear failed</button>
</th>
<th scope="col" style="width: 2rem;"></th>
+ <th scope="col" style="width: 2rem;"></th>
</tr>
</thead>
<tbody>
@@ -90,9 +91,14 @@
</div>
<span ngbTooltip="{{download.value.msg}}">{{ download.value.title }}</span>
</td>
- <td><button type="button" class="btn btn-link" (click)="delDownload('done', download.key)"><fa-icon [icon]="faTrashAlt"></fa-icon></button></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>
+ </td>
+ <td>
+ <button type="button" class="btn btn-link" (click)="delDownload('done', download.key)"><fa-icon [icon]="faTrashAlt"></fa-icon></button>
+ </td>
</tr>
</tbody>
</table>
-
+
</main><!-- /.container -->
bgstack15