Revamping radio notifications; Radio current track

This commit is contained in:
James Barnsley
2018-04-01 21:26:42 +12:00
parent 407a2d3a10
commit fcbfc64ec6
27 changed files with 346 additions and 237 deletions

View File

@ -105,7 +105,10 @@ class Queue extends React.Component{
track = Object.assign(
{},
this.props.tracks[track.uri],
track
track,
{
playing: (this.props.current_track && this.props.current_track.tlid == track.tlid)
}
);
}
@ -114,10 +117,7 @@ class Queue extends React.Component{
track = Object.assign(
{},
track,
this.props.queue_metadata["tlid_"+track.tlid],
{
playing: (this.props.current_track && this.props.current_track.tlid == track.tlid)
}
this.props.queue_metadata["tlid_"+track.tlid]
);
}