Mute visual feedback

This commit is contained in:
James Barnsley
2017-05-19 16:47:40 +12:00
parent 06f9c1d0b9
commit 929d92bbac
2 changed files with 21 additions and 7 deletions

View File

@ -25,7 +25,7 @@ class VolumeControl extends React.Component{
render(){
return (
<span className="volume-control">
<span className={this.props.mute ? "volume-control muted" : "volume-control"}>
<a onClick={() => this.props.mopidyActions.setMute(!this.props.mute)}>
{this.props.mute ? <FontAwesome name="volume-off" /> : <FontAwesome name="volume-down" />}
</a>