forked from p34709852/monkey
Bugfix: PreviewPane.js log download button no longer enabled when no log is present
This commit is contained in:
parent
0be1b3a908
commit
bd537faa11
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue