Update collection-list.ejs
This commit is contained in:
parent
ea9a11ce25
commit
ed9365942a
1 changed files with 1 additions and 3 deletions
|
@ -77,11 +77,11 @@
|
||||||
getNext() {
|
getNext() {
|
||||||
let self = this
|
let self = this
|
||||||
this.triggerEnabled = false;
|
this.triggerEnabled = false;
|
||||||
this.loading = true
|
|
||||||
|
|
||||||
if (this.data.next == "undefined") {
|
if (this.data.next == "undefined") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.loading = true
|
||||||
|
|
||||||
this.api.v3.music(this.data.next, app.collectionList.requestBody).then((response) => {
|
this.api.v3.music(this.data.next, app.collectionList.requestBody).then((response) => {
|
||||||
if (!app.collectionList.response.groups) {
|
if (!app.collectionList.response.groups) {
|
||||||
|
@ -91,7 +91,6 @@
|
||||||
this.triggerEnabled = true;
|
this.triggerEnabled = true;
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if (response.data.results[app.collectionList.response.groups].next) {
|
if (response.data.results[app.collectionList.response.groups].next) {
|
||||||
this.data.data = this.data.data.concat(response.data.results[app.collectionList.response.groups].data);
|
this.data.data = this.data.data.concat(response.data.results[app.collectionList.response.groups].data);
|
||||||
|
@ -99,7 +98,6 @@
|
||||||
this.triggerEnabled = true;
|
this.triggerEnabled = true;
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue