playlist view
This commit is contained in:
parent
4ac8394098
commit
2b0f386cdc
3 changed files with 78 additions and 2 deletions
|
@ -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 == "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue