Editing and adding to playlists, then we'll reload it

This commit is contained in:
James Barnsley
2017-02-03 09:04:47 +13:00
parent 808ce2d18c
commit 058d2607e9
8 changed files with 45 additions and 22 deletions

View File

@ -236,6 +236,7 @@ const SpotifyMiddleware = (function(){
{},
action.playlists[i],
{
source: 'spotify',
can_edit: (store.getState().spotify.authorized && store.getState().spotify.me && action.playlists[i].owner.id == store.getState().spotify.me.id),
tracks_total: action.playlists[i].tracks.total
}