Fixing duplicate last track in queue; Track artwork links to album

This commit is contained in:
James Barnsley
2017-11-28 08:07:53 +13:00
parent 88ce3fb20a
commit b155b1b90e
2 changed files with 4 additions and 2 deletions

View File

@ -118,7 +118,6 @@ class Queue extends React.Component{
playing: (this.props.current_track && this.props.current_track.tlid == track.tlid)
}
);
tracks[i] = track;
}
// Siphon off this track if it's a full representation of our current track (by tlid)

View File

@ -15,6 +15,7 @@ import LastfmLoveButton from '../components/LastfmLoveButton'
import Dater from '../components/Dater'
import LazyLoadListener from '../components/LazyLoadListener'
import ContextMenuTrigger from '../components/ContextMenuTrigger'
import URILink from '../components/URILink'
import * as helpers from '../helpers'
import * as uiActions from '../services/ui/actions'
@ -212,7 +213,9 @@ class Track extends React.Component{
uiActions={this.props.uiActions} /> : null}
<div className="thumbnail-wrapper">
<Thumbnail size="large" canZoom images={track.album.images} />
<URILink type="album" uri={track.album.uri}>
<Thumbnail size="large" canZoom images={track.images} />
</URILink>
</div>
<div className="title">