diff options
author | Rpsl <gmail@rpsl.info> | 2021-07-29 11:12:40 +0300 |
---|---|---|
committer | Rpsl <gmail@rpsl.info> | 2021-07-29 11:12:40 +0300 |
commit | fffba9065acf10f1a2d6a1e2f3bc3aa531b6a8ca (patch) | |
tree | e6690b68dfdc8eeb5f48bb016a22f57beea3dba1 /ui/src/app/app.component.html | |
parent | Merge pull request #37 from Rpsl/master (diff) | |
download | metube-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.html | 14 |
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> 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> Clear selected</button> <button type="button" class="btn btn-link px-0 mr-4" disabled #doneClearCompleted (click)="clearCompletedDownloads()"><fa-icon [icon]="faCheckCircle"></fa-icon> Clear completed</button> <button type="button" class="btn btn-link px-0 mr-4" disabled #doneClearFailed (click)="clearFailedDownloads()"><fa-icon [icon]="faTimesCircle"></fa-icon> 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 --> |