Browse Source

restrict a ghost download to post race

feature/mapper-integration
Quildra 2 years ago
parent
commit
5f17df491c
  1. 5
      packages/bridge-ui/src/app/components/race-details/race-details.component.html

5
packages/bridge-ui/src/app/components/race-details/race-details.component.html

@ -71,7 +71,12 @@
<ng-container matColumnDef="ghost">
<th mat-header-cell *matHeaderCellDef>Ghost</th>
@if(openToUploads) {
<td mat-cell *matCellDef="let element"> <button mat-raised-button color="disabled"><mat-icon aria-hidden="false" aria-label="Example home icon" fontIcon="download"></mat-icon> Ghost</button> </td>
}
@else {
<td mat-cell *matCellDef="let element"> <button mat-raised-button color="accent" (click)="onClickDownloadGhost(element)"><mat-icon aria-hidden="false" aria-label="Example home icon" fontIcon="download"></mat-icon> Ghost</button> </td>
}
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>

Loading…
Cancel
Save