forked from dbroqua/MusicTopus
@93 - Wantlist
This commit is contained in:
parent
bed5139a27
commit
a4a3933c6d
24 changed files with 1137 additions and 70 deletions
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-undef */
|
||||
Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
|
@ -74,7 +75,7 @@ Vue.createApp({
|
|||
|
||||
this.sortOrder = `${sortOrder.sort}-${sortOrder.order}`;
|
||||
|
||||
let url = `/api/v1/albums?page=${this.page}&sort=${this.sort}&order=${this.order}`;
|
||||
let url = `/api/v1/${action}?page=${this.page}&sort=${this.sort}&order=${this.order}`;
|
||||
if (this.artist) {
|
||||
url += `&artist=${this.formatParams(this.artist)}`;
|
||||
}
|
||||
|
@ -186,7 +187,7 @@ Vue.createApp({
|
|||
return false;
|
||||
}
|
||||
return axios
|
||||
.delete(`/api/v1/albums/${this.itemId}`)
|
||||
.delete(`/api/v1/${action}/${this.itemId}`)
|
||||
.then(() => {
|
||||
this.fetch();
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue