Add validate button to torrents

master
Luminarys 2018-03-14 12:44:38 -07:00
parent f9ece61f50
commit 42bfc66a01
1 changed files with 6 additions and 0 deletions

View File

@ -220,6 +220,12 @@ class Torrent extends Component {
<Collapse isOpen={this.state.infoShown}>
<Card style={{marginBottom: "1rem"}}>
<CardBlock>
<button
className="btn btn-sm btn-outline-primary pull-right"
onClick={() => {
ws_send("VALIDATE_RESOURCES", { ids: [torrent.id] })
}}
>Initiate hash check</button>
<dl>
<dt>Type</dt>
<dd>{torrent.private ? "Private" : "Public"}</dd>