Tracklists are sortable with ONLY the first bunch; Playlist and queue sorting

This commit is contained in:
James Barnsley
2016-11-16 16:30:49 +13:00
parent 86b9665ec8
commit 04abfe6f2b
7 changed files with 87 additions and 28 deletions

View File

@ -1,7 +1,5 @@
/**
* Actions and Action Creators
**/
import * as helpers from '../../helpers'
export function setConfig( config ){
return {
@ -69,6 +67,16 @@ export function removeTracks( tlids ){
}
}
export function reorderTracklist( indexes, insert_before ){
var range = helpers.createRange( indexes );
return {
type: 'MOPIDY_REORDER_TRACKLIST',
range_start: range.start,
range_length: range.length,
insert_before: insert_before
}
}
export function play(){
return instruct('playback.play');
}