Colouring for player; Context menu and track tap zone

This commit is contained in:
James Barnsley
2017-06-23 08:03:28 +12:00
parent 4c39e935ef
commit 278d6f73be
6 changed files with 22 additions and 28 deletions

View File

@ -140,8 +140,7 @@ export default class Track extends React.Component{
onDoubleClick={ e => this.props.handleDoubleClick(e) }
onContextMenu={ e => this.handleContextMenu(e) }>
<span className="state-icon">
{ this.props.track.selected ? <FontAwesome name="check" className="selected" fixedWidth /> : null }
{ this.props.track.playing && !this.props.track.selected ? <FontAwesome name="play" className="playing" fixedWidth /> : null }
{this.props.track.selected ? <FontAwesome name="check" className="selected" fixedWidth /> : null}
</span>
{ track_columns }
</div>