@93 - Wantlist

This commit is contained in:
Damien Broqua 2024-06-15 10:13:22 +02:00
parent bed5139a27
commit a4a3933c6d
24 changed files with 1137 additions and 70 deletions

View file

@ -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();
})