Merge pull request #46 from Luminarys/master

Add validate button to torrents
master
Drew DeVault 2018-03-14 15:49:15 -04:00 committed by GitHub
commit 3ee4461410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -230,6 +230,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>