Bugfix: PreviewPane.js log download button no longer enabled when no log is present

This commit is contained in:
VakarisZ 2020-06-23 12:23:30 +03:00
parent 0be1b3a908
commit bd537faa11
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@ class PreviewPaneComponent extends AuthComponent {
Download Log Download Log
</th> </th>
<td> <td>
<a type="button" className="btn btn-primary" <a type="button"
disabled={!asset.has_log} className={asset.has_log ? "btn btn-primary" : "btn btn-primary disabled"}
onClick={() => this.downloadLog(asset)}>Download</a> onClick={() => this.downloadLog(asset)}>Download</a>
</td> </td>
</tr> </tr>