This commit is contained in:
Pedro Galhardo 2022-05-21 19:09:23 +01:00
parent 50061f29f9
commit e2a0c652c3
No known key found for this signature in database
GPG key ID: 4740524CD85770A9

View file

@ -278,7 +278,7 @@
inPlaylist: false, inPlaylist: false,
searchQuery: "", searchQuery: "",
displayListing: [], displayListing: [],
hasNestedPlaylist: null, hasNestedPlaylist: false,
} }
}, },
mounted: function () { mounted: function () {
@ -329,7 +329,7 @@
return x.attributes.discNumber return x.attributes.discNumber
}).filter((item, i, ar) => ar.indexOf(item) === i); }).filter((item, i, ar) => ar.indexOf(item) === i);
if ((discs && discs.length > 1) || (discs && this.hasNestedPlaylist == true)) { if ((discs && discs.length > 1) || (discs && this.hasNestedPlaylist)) {
for (disc of discs) { for (disc of discs) {
let songs = songlists.filter(x => x.attributes.discNumber == disc); let songs = songlists.filter(x => x.attributes.discNumber == disc);
this.nestedPlaylist.push({ disc: disc, tracks: songs }) this.nestedPlaylist.push({ disc: disc, tracks: songs })
@ -795,4 +795,4 @@
} }
} }
}) })
</script> </script>