From 4c64694da23f07ceb1736f58c6ea666963ce6900 Mon Sep 17 00:00:00 2001
From: Georg Krause <mail@georg-krause.net>
Date: Fri, 10 Dec 2021 11:44:39 +0100
Subject: [PATCH] Load all tracks for albums, disable play button if not
 playable

---
 front/src/components/library/AlbumBase.vue  | 2 +-
 front/src/components/mixins/PlayOptions.vue | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue
index 9ed85eded9..dd47ae3c20 100644
--- a/front/src/components/library/AlbumBase.vue
+++ b/front/src/components/library/AlbumBase.vue
@@ -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
diff --git a/front/src/components/mixins/PlayOptions.vue b/front/src/components/mixins/PlayOptions.vue
index ebe1810ef1..42e2dab5dd 100644
--- a/front/src/components/mixins/PlayOptions.vue
+++ b/front/src/components/mixins/PlayOptions.vue
@@ -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
-- 
GitLab