Debug error; Touch context tracklist uri
This commit is contained in:
@ -39,12 +39,12 @@ class TouchContextMenu extends React.Component{
|
||||
}
|
||||
|
||||
playURIs(e){
|
||||
this.props.mopidyActions.playURIs(this.props.menu.uris)
|
||||
this.props.mopidyActions.playURIs(this.props.menu.uris, this.props.menu.tracklist_uri)
|
||||
this.close()
|
||||
}
|
||||
|
||||
playURIsNext(e){
|
||||
this.props.mopidyActions.enqueueURIsNext(this.props.menu.uris)
|
||||
this.props.mopidyActions.enqueueURIsNext(this.props.menu.uris, this.props.menu.tracklist_uri)
|
||||
this.close()
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ class TouchContextMenu extends React.Component{
|
||||
}
|
||||
|
||||
addToQueue(e){
|
||||
this.props.mopidyActions.enqueueURIs(this.props.menu.uris)
|
||||
this.props.mopidyActions.enqueueURIs(this.props.menu.uris, this.props.menu.tracklist_uri)
|
||||
this.close()
|
||||
}
|
||||
|
||||
|
||||
@ -142,7 +142,7 @@ class TrackList extends React.Component{
|
||||
if( selected_tracks.length > 0 ){
|
||||
var data = {
|
||||
context: (this.props.context ? this.props.context : 'track'),
|
||||
tracklist_uri: (this.props.tracklist_uri ? this.props.tracklist_uri : null),
|
||||
tracklist_uri: (this.props.uri ? this.props.uri : null),
|
||||
items: selected_tracks,
|
||||
uris: helpers.asURIs(selected_tracks),
|
||||
indexes: this.tracksIndexes(selected_tracks)
|
||||
|
||||
@ -175,10 +175,12 @@ class Debug extends React.Component{
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return {
|
||||
connectionid: state.pusher.connectionid,
|
||||
emulate_touch: state.ui.emulate_touch,
|
||||
log_actions: state.ui.log_actions,
|
||||
debug_info: state.ui.debug_info,
|
||||
connection_id: state.pusher.connection_id,
|
||||
emulate_touch: (state.ui.emulate_touch ? state.ui.emulate_touch : false),
|
||||
log_actions: (state.ui.log_actions ? state.ui.log_actions : false),
|
||||
log_pusher: (state.ui.log_pusher ? state.ui.log_pusher : false),
|
||||
log_mopidy: (state.ui.log_mopidy ? state.ui.log_mopidy : false),
|
||||
debug_info: (state.ui.debug_info ? state.ui.debug_info : false),
|
||||
debug_response: state.ui.debug_response
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user