working on adding social people and playlists in search, testing home page in dev mode
This commit is contained in:
parent
df6ba93242
commit
3c17e15b08
8 changed files with 293 additions and 47 deletions
|
@ -46,7 +46,8 @@
|
|||
triggerEnabled: true,
|
||||
canSeeTrigger: false,
|
||||
showFab: false,
|
||||
commonKind: "song"
|
||||
commonKind: "song",
|
||||
api: this.$root.mk.api
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -72,12 +73,18 @@
|
|||
case "artists":
|
||||
if (this.data.next && this.triggerEnabled) {
|
||||
this.triggerEnabled = false;
|
||||
this.data.next().then(data => {
|
||||
|
||||
let nextFn = (data => {
|
||||
console.log(data);
|
||||
this.data.next = data.next;
|
||||
this.data.data = this.data.data.concat(data.data);
|
||||
this.triggerEnabled = true;
|
||||
});
|
||||
if(typeof this.data.next == "function") {
|
||||
this.data.next().then(data => next);
|
||||
}else{
|
||||
this.api.v3.music(this.data.next).then(data => nextFn);
|
||||
}
|
||||
}else{
|
||||
console.log("No next page");
|
||||
this.triggerEnabled = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue