Removing tracks

This commit is contained in:
James Barnsley
2016-11-11 16:47:32 +13:00
parent 3e5a2c84d6
commit 31a1856baf
5 changed files with 57 additions and 8 deletions

View File

@ -35,7 +35,7 @@ class App extends React.Component{
this.props.pusherActions.connect();
this.props.mopidyActions.connect();
this.props.spotifyActions.connect();
this.props.spotifyActions.getAllLibraryPlaylists();
if( this.props.spotify_authorized ) this.props.spotifyActions.getAllLibraryPlaylists();
}
componentWillReceiveProps(nextProps){

View File

@ -65,7 +65,7 @@ class Artist extends React.Component{
<ul className="details">
{ this.props.artist.followers ? <li>{ this.props.artist.followers.total.toLocaleString() } followers</li> : null }
{ this.props.artist.popularity ? <li>{ this.props.artist.popularity }% popularity</li> : null }
<li>{ this.props.artist.albums.length.toLocaleString() } albums</li>
{ scheme == 'local' ? <li>{ this.props.artist.albums.length.toLocaleString() } albums</li> : null }
{ scheme == 'spotify' ? <li><FontAwesome name='spotify' /> Spotify artist</li> : null }
{ scheme == 'local' ? <li><FontAwesome name='folder' /> Local artist</li> : null }
</ul>