fix: total number of playlists in download button

This commit is contained in:
Roberto Tonino 2021-08-11 11:50:25 +02:00
parent 5f5301b6b8
commit b06597d9f2

View File

@ -273,9 +273,12 @@ export default defineComponent({
return toDownload
},
getTabLength(tab = this.activeTab) {
const total = this[`${tab}s`]?.length
// TODO: Add Spotify playlists to downlaod queue as well
// if (tab === "playlist") total += this.spotifyPlaylists.length
let total = this[`${tab}s`]?.length
if (tab === 'playlist') {
total += this.spotifyPlaylists.length
}
return total || 0
},
getLovedTracksPlaylist() {