Tracklists are sortable with ONLY the first bunch; Playlist and queue sorting
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user