|
|
@ -31,9 +31,10 @@ const photoState = reactive({ edit: false }); |
|
|
|
|
|
|
|
|
|
|
|
const emits = defineEmits(["full-screen"]); |
|
|
|
const emits = defineEmits(["full-screen"]); |
|
|
|
|
|
|
|
|
|
|
|
const deletePhoto = async () => { |
|
|
|
const deleteAlbum = async (e) => { |
|
|
|
if(confirm("Voulez-vous vraiment supprimé cette photo")){ |
|
|
|
Utils.Prevent(e); |
|
|
|
form.delete("/photo/" + props.album.uuid, { |
|
|
|
if(confirm("Voulez-vous vraiment supprimé cette album")){ |
|
|
|
|
|
|
|
form.delete(route("album.destroy", props.album.uuid), { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
"X-CSRF-Token": document.querySelector('input[name=_token]').value, |
|
|
|
"X-CSRF-Token": document.querySelector('input[name=_token]').value, |
|
|
|
} |
|
|
|
} |
|
|
|