Headings on responsive (flex); GridItem trigger image load

This commit is contained in:
James Barnsley
2019-09-15 21:11:57 +12:00
parent 5688b29ae9
commit 6415074287
18 changed files with 197 additions and 76 deletions

View File

@ -2111,7 +2111,11 @@ const MopidyMiddleware = (function () {
const existing_artist = store.getState().core.artists[artist.uri];
if (existing_artist) {
if (!existing_artist.images) {
store.dispatch(discogsActions.getArtistImages(artist.uri, artist));
if (store.getState().spotify.access_token) {
store.dispatch(spotifyActions.getArtistImages(artist));
} else {
store.dispatch(discogsActions.getArtistImages(artist.uri, artist));
}
}
// Get biography and other stats from LastFM