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
</th>
<td>
<a type="button" className="btn btn-primary"
disabled={!asset.has_log}
<a type="button"
className={asset.has_log ? "btn btn-primary" : "btn btn-primary disabled"}
onClick={() => this.downloadLog(asset)}>Download</a>
</td>
</tr>