Editing playlist description; Handling change of local playlist URIs

This commit is contained in:
James Barnsley
2017-07-13 07:53:00 +12:00
parent eabdec24cc
commit f272c6f733
8 changed files with 127 additions and 50 deletions

View File

@ -130,7 +130,7 @@ export function reorderPlaylistTracks( uri, indexes, insert_before, snapshot_id
}
}
export function savePlaylist( uri, name, is_public = false ){
export function savePlaylist(uri, name, is_public = false, description = ''){
switch( helpers.uriSource( uri ) ){
case 'spotify':
@ -138,7 +138,8 @@ export function savePlaylist( uri, name, is_public = false ){
type: 'SPOTIFY_SAVE_PLAYLIST',
key: uri,
name: name,
is_public: is_public
is_public: is_public,
description: (description == '' ? null : description)
}
case 'm3u':