Wire up manual tracker report button

master
Drew DeVault 2017-12-29 15:17:13 -05:00
parent 8a7e90f8cb
commit ac4d290a28
1 changed files with 3 additions and 1 deletions

View File

@ -238,9 +238,11 @@ class Torrent extends Component {
a.href = tracker.url;
return a.hostname;
})()}
{/* TODO: wire up this button: */}
<button
className="btn btn-sm btn-outline-primary pull-right"
onClick={() => {
ws_send("UPDATE_TRACKER", { id: tracker.id })
}}
>Report</button>
</h5>
<dl>