#63 - Suppression d'un album

This commit is contained in:
Damien Broqua 2022-10-28 21:55:31 +02:00
parent d03394bee7
commit 748edc9cc4

View file

@ -319,7 +319,7 @@
deleteItem() { deleteItem() {
axios.delete(`/api/v1/albums/${this.item._id}`) axios.delete(`/api/v1/albums/${this.item._id}`)
.then( () => { .then( () => {
return locatiom.href = "/ma-collection"; window.location.href = "/ma-collection";
}) })
.catch((err) => { .catch((err) => {
showToastr(err.response?.data?.message || "Impossible de supprimer cet album"); showToastr(err.response?.data?.message || "Impossible de supprimer cet album");