Preliminary fix #17

This commit is contained in:
James Barnsley
2017-01-06 16:06:31 +13:00
parent 7d7b674912
commit 1887dfc364
2 changed files with 28 additions and 9 deletions

View File

@ -19,9 +19,9 @@ class MiniPlayer extends React.Component{
}
renderPlayButton(){
var button = <a onClick={() => this.props.mopidyActions.play()}><FontAwesome name="play" /> </a>
var button = <a className="play" onClick={() => this.props.mopidyActions.play()}><FontAwesome name="play" /> </a>
if( this.props.play_state == 'playing' ){
button = <a onClick={() => this.props.mopidyActions.pause()}><FontAwesome name="pause" /> </a>
button = <a className="play" onClick={() => this.props.mopidyActions.pause()}><FontAwesome name="pause" /> </a>
}
return button;
}
@ -37,7 +37,7 @@ class MiniPlayer extends React.Component{
<div className="controls">
{ this.renderPlayButton() }
<a onClick={() => this.props.mopidyActions.next()}>
<a className="next" onClick={() => this.props.mopidyActions.next()}>
<FontAwesome name="step-forward" />
</a>&nbsp;
<VolumeControl />