Skip to content

Commit

Permalink
Hide download button if no file has been downloaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
arabcoders committed Nov 16, 2023
1 parent 2a57447 commit add2a04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@
<button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
</td>
<td>
<a *ngIf="download.value.filename; else no_download" href="{{buildDownloadLink(download.value)}}" download><fa-icon [icon]="faDownload"></fa-icon></a>
<ng-template #no_download><a href="#"><fa-icon [icon]="faDownload"></fa-icon></a></ng-template>
<a *ngIf="download.value.filename" 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>
Expand Down

0 comments on commit add2a04

Please sign in to comment.