Cleanup
This commit is contained in:
parent
50061f29f9
commit
e2a0c652c3
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue