Wire up manual tracker report button

This commit is contained in:
Drew DeVault 2017-12-29 15:17:13 -05:00
parent 8a7e90f8cb
commit ac4d290a28

View File

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