Skip to content
Snippets Groups Projects
Verified Commit 58c6a27b authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed #43: broken play all button on artist card

parent 35e9b48c
No related branches found
No related tags found
No related merge requests found
...@@ -5,4 +5,10 @@ Changelog ...@@ -5,4 +5,10 @@ Changelog
0.2.4 (unreleased) 0.2.4 (unreleased)
------------------ ------------------
Models: now store relese group mbid on Album model (#7) Features:
- Models: now store relese group mbid on Album model (#7)
Bugfixes:
- Library: fixen broken "play all albums" button on artist cards in Artist browsing view (#43)
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<script> <script>
import config from '@/config' import config from '@/config'
import backend from '@/audio/backend'
import logger from '@/logging' import logger from '@/logging'
import ArtistCard from '@/components/audio/artist/Card' import ArtistCard from '@/components/audio/artist/Card'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
...@@ -66,6 +67,13 @@ export default { ...@@ -66,6 +67,13 @@ export default {
logger.default.debug('Fetching artists') logger.default.debug('Fetching artists')
this.$http.get(url, {params: params}).then((response) => { this.$http.get(url, {params: params}).then((response) => {
self.result = response.data self.result = response.data
self.result.results.map((artist) => {
var albums = JSON.parse(JSON.stringify(artist.albums)).map((album) => {
return backend.Album.clean(album)
})
artist.albums = albums
return artist
})
self.isLoading = false self.isLoading = false
}) })
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment