playlist view

This commit is contained in:
vapormusic 2021-12-06 15:37:09 +07:00
parent 4ac8394098
commit 2b0f386cdc
3 changed files with 78 additions and 2 deletions

View file

@ -76,6 +76,11 @@ Vue.component('cider-listen-now', {
props: ["data"]
})
Vue.component('cider-playlist', {
template: "#cider-playlist",
props: ["data"]
})
const MusicKitTools = {
getHeader() {
return new Headers({
@ -110,6 +115,7 @@ const app = new Vue({
radio: {
personal: []
},
showingPlaylist: [],
library: {
songs: {
listing: [],
@ -234,6 +240,13 @@ const app = new Vue({
})
document.body.removeAttribute("loading")
},
async getPlaylistFromID(id){
try{
this.showingPlaylist = await app.mk.api.library.playlist(id)} catch (e){console.log(e);
try{this.showingPlaylist = await app.mk.api.playlist(id)} catch (err) {console.log(err)}
}
},
searchLibrarySongs() {
let self = this
if (this.library.songs.search == "") {