Skip to content
Snippets Groups Projects
Commit 4c64694d authored by Georg Krause's avatar Georg Krause Committed by JuniorJPDJ
Browse files

Load all tracks for albums, disable play button if not playable

parent 8325184d
Branches
No related tags found
No related merge requests found
......@@ -332,7 +332,7 @@ export default {
methods: {
async fetchData () {
this.isLoading = true
let tracksResponse = axios.get('tracks/', { params: { ordering: 'disc_number,position', album: this.id, page_size: this.paginateBy, page: this.page, include_channels: 'true', playable: 'true' } })
let tracksResponse = axios.get('tracks/', { params: { ordering: 'disc_number,position', album: this.id, page_size: this.paginateBy, page: this.page, include_channels: 'true' } })
const albumResponse = await axios.get(`albums/${this.id}/`, { params: { refresh: 'true' } })
const artistResponse = await axios.get(`artists/${albumResponse.data.artist.id}/`)
this.artist = artistResponse.data
......
......@@ -16,8 +16,6 @@ export default {
return this.artist.albums.filter((a) => {
return a.is_playable === true
}).length > 0
} else if (this.album) {
return true
} else if (this.tracks) {
return this.tracks.filter((t) => {
return t.uploads && t.uploads.length > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment