fix: total number of playlists in download button
This commit is contained in:
parent
5f5301b6b8
commit
b06597d9f2
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user