From 83901eecbaa8441d6dd0d07d104d168a9a5df17e Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 23 Aug 2016 17:25:59 -0700 Subject: [PATCH] Fixes for PR #825 cc @mathiasvr --- src/renderer/pages/TorrentListPage.js | 28 ++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/renderer/pages/TorrentListPage.js b/src/renderer/pages/TorrentListPage.js index 9408eb65..868cbc30 100644 --- a/src/renderer/pages/TorrentListPage.js +++ b/src/renderer/pages/TorrentListPage.js @@ -192,23 +192,12 @@ module.exports = class TorrentList extends React.Component { key='download-button' className={'button-round icon download ' + torrentSummary.status} title={downloadTooltip} - onClick={dispatcher('toggleTorrent', infoHash)}> + onClick={dispatcher('toggleTorrent', infoHash)} + > {downloadIcon} ) - if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) { - playButton = ( - - {playIcon} - - ) - } - // Do we have a saved position? Show it using a radial progress bar on top // of the play button, unless already showing a spinner there: var willShowSpinner = torrentSummary.playStatus === 'requested' @@ -219,6 +208,19 @@ module.exports = class TorrentList extends React.Component { positionElem = this.renderRadialProgressBar(fraction, 'radial-progress-large') playClass = 'resume-position' } + + if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) { + playButton = ( + + {playIcon} + + ) + } } return (