@@ -192,23 +192,12 @@ module.exports = class TorrentList extends React.Component {
|
|||||||
key='download-button'
|
key='download-button'
|
||||||
className={'button-round icon download ' + torrentSummary.status}
|
className={'button-round icon download ' + torrentSummary.status}
|
||||||
title={downloadTooltip}
|
title={downloadTooltip}
|
||||||
onClick={dispatcher('toggleTorrent', infoHash)}>
|
onClick={dispatcher('toggleTorrent', infoHash)}
|
||||||
|
>
|
||||||
{downloadIcon}
|
{downloadIcon}
|
||||||
</i>
|
</i>
|
||||||
)
|
)
|
||||||
|
|
||||||
if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) {
|
|
||||||
playButton = (
|
|
||||||
<i
|
|
||||||
key='play-button'
|
|
||||||
title={playTooltip}
|
|
||||||
className={'button-round icon play ' + playClass}
|
|
||||||
onClick={dispatcher('playFile', infoHash)}>
|
|
||||||
{playIcon}
|
|
||||||
</i>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do we have a saved position? Show it using a radial progress bar on top
|
// 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:
|
// of the play button, unless already showing a spinner there:
|
||||||
var willShowSpinner = torrentSummary.playStatus === 'requested'
|
var willShowSpinner = torrentSummary.playStatus === 'requested'
|
||||||
@@ -219,6 +208,19 @@ module.exports = class TorrentList extends React.Component {
|
|||||||
positionElem = this.renderRadialProgressBar(fraction, 'radial-progress-large')
|
positionElem = this.renderRadialProgressBar(fraction, 'radial-progress-large')
|
||||||
playClass = 'resume-position'
|
playClass = 'resume-position'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) {
|
||||||
|
playButton = (
|
||||||
|
<i
|
||||||
|
key='play-button'
|
||||||
|
title={playTooltip}
|
||||||
|
className={'button-round icon play ' + playClass}
|
||||||
|
onClick={dispatcher('playFile', infoHash)}
|
||||||
|
>
|
||||||
|
{playIcon}
|
||||||
|
</i>
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user