diff --git a/app/components/AlbumView/index.js b/app/components/AlbumView/index.js index 59799fb7f9..0f7bd1c62c 100644 --- a/app/components/AlbumView/index.js +++ b/app/components/AlbumView/index.js @@ -13,7 +13,7 @@ class AlbumView extends React.Component { super(props); } - getArtistName(track, album) { + getArtistName (track, album) { if (!track.artists) { return album.artists[0].name; } else { @@ -21,7 +21,7 @@ class AlbumView extends React.Component { .name; let artistName = firstArtist; _(track.artists) - .filter(artist => artist.name != firstArtist) + .filter(artist => artist.name !== firstArtist) .forEach(artist => { artistName += ' ' + artist.join + ' ' + artist.name; }); @@ -30,7 +30,7 @@ class AlbumView extends React.Component { } } - addToQueue(album, track) { + addToQueue (album, track) { this.props.addToQueue(this.props.musicSources, { artist: this.getArtistName(track, album), name: track.title, @@ -38,7 +38,7 @@ class AlbumView extends React.Component { }); } - addAlbumToQueue(album) { + addAlbumToQueue (album) { album.tracklist.map((track, i) => { this.props.addToQueue(this.props.musicSources, { artist: album.artists[0].name, @@ -48,19 +48,19 @@ class AlbumView extends React.Component { }); } - artistInfoSearch(artistId) { + artistInfoSearch (artistId) { this.props.artistInfoSearch(artistId); this.props.history.push('/artist/' + artistId); } - playAll(album) { + playAll (album) { this.props.clearQueue(); this.addAlbumToQueue(album); this.props.selectSong(0); this.props.startPlayback(); } - render() { + render () { let { album } = this.props; if (_.some(_.map([album.images, album.artists, album.genres], _.isEmpty))) { return this.renderInvalidData(); @@ -69,7 +69,7 @@ class AlbumView extends React.Component { return this.renderAlbumLoading(album, albumImage); } - renderInvalidData() { + renderInvalidData () { return (