Removing debug; Re-setting current track state on re-render (eg after modal)

This commit is contained in:
James Barnsley
2019-03-19 21:24:31 +13:00
parent 38aa95ae9b
commit 9884ed6b5c
5 changed files with 2946 additions and 2241 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@
// Release details // Release details
// These are automatically injected to built HTML // These are automatically injected to built HTML
var build = "1552945839"; var build = "1552983069";
var version = "3.33.0"; var version = "3.33.0";
// Construct the script tag // Construct the script tag

View File

@ -37,6 +37,10 @@ class PlaybackControls extends React.Component{
// Bust our cache, and by consequence, play our stream // Bust our cache, and by consequence, play our stream
this.props.coreActions.cachebustHttpStream(); this.props.coreActions.cachebustHttpStream();
} }
if (this.props.current_track){
this.setState({current_track: this.props.current_track});
}
} }
playStream(props = this.props){ playStream(props = this.props){

View File

@ -640,7 +640,6 @@ const MopidyMiddleware = (function(){
break; break;
case 'MOPIDY_ENQUEUE_PLAYLIST': case 'MOPIDY_ENQUEUE_PLAYLIST':
console.log(action);
var playlist = store.getState().core.playlists[action.uri]; var playlist = store.getState().core.playlists[action.uri];