Moving follow check to asset, rather than component, fixes #146

This commit is contained in:
James Barnsley
2017-11-01 08:14:26 +13:00
parent 7f8a9c26dc
commit 5b0a0b27b8
6 changed files with 31 additions and 30 deletions

View File

@ -60,12 +60,13 @@ class Playlist extends React.Component{
switch (helpers.uriSource(props.params.uri)){
case 'spotify':
this.props.spotifyActions.getPlaylist(props.params.uri )
this.props.spotifyActions.getPlaylist(props.params.uri);
this.props.spotifyActions.following(props.params.uri);
break
default:
if (props.mopidy_connected){
this.props.mopidyActions.getPlaylist(props.params.uri )
this.props.mopidyActions.getPlaylist(props.params.uri);
}
break
}