diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js
index 1c97bf4..ce071f6 100644
--- a/src/ui/torrent_details.js
+++ b/src/ui/torrent_details.js
@@ -73,7 +73,7 @@ class Torrent extends Component {
}
render() {
- const { dispatch, torrent, files } = this.props;
+ const { dispatch, torrent, files, trackers } = this.props;
const status = s => s[0].toUpperCase() + s.slice(1);
if (!torrent || !files) {
@@ -175,6 +175,35 @@ class Torrent extends Component {
+ {(() => {
+ const a = document.createElement("a");
+ a.href = tracker.url;
+ return a.hostname;
+ })()}
+ {/* TODO: wire up this button: */}
+
+
+
+
+
@@ -275,6 +319,8 @@ export default connect(state => ({ router: state.router, torrents: state.torrents, files: state.files, + trackers: state.trackers, + peers: state.peers, selection: state.selection, server: state.server }))(TorrentDetails);