Artist responsive; playURIs bug; menu reveal

This commit is contained in:
James Barnsley
2016-11-24 08:11:41 +13:00
parent b72ab52004
commit 09e2ff7572
13 changed files with 95 additions and 18 deletions

View File

@ -1,6 +1,7 @@
import React, { PropTypes } from 'react'
import Icon from './Icon'
import SidebarToggleButton from './SidebarToggleButton'
export default class Header extends React.Component{
@ -12,6 +13,7 @@ export default class Header extends React.Component{
return (
<header>
<Icon name={ this.props.icon } />
<SidebarToggleButton />
<h1>{ this.props.title }</h1>
{ this.props.actions ? <div className="actions">{ this.props.actions }</div> : null }
</header>

View File

@ -173,7 +173,7 @@ class TrackList extends React.Component{
for( var i = 0; i < tracks.length; i++ ){
uris.push( tracks[i].uri )
}
return this.props.mopidyActions.playTracks( uris )
return this.props.mopidyActions.playURIs( uris )
}
removeTracks(){