Planovac, lepsi social image

This commit is contained in:
Michal Kváček
2024-06-03 23:07:41 +02:00
parent 32ff47a3a7
commit 70bc57d3c7
10 changed files with 32 additions and 30 deletions
+3 -2
View File
@@ -112,7 +112,7 @@ const openBatchPhotoForm = (photos) => {
editBatchPhotos.value = photos;
}
const handleBatchPhotoEdit = async (flightId, data) => {
const handleBatchPhotoEdit = async (data) => {
const photoIds = data.photoIds;
delete data.photoIds;
delete data.id;
@@ -122,6 +122,7 @@ const handleBatchPhotoEdit = async (flightId, data) => {
...data.pointOfInterest,
isPublic: false,
description: "",
urlSlug: "",
}
await usePointsOfInterestStore().create(poiData).then(poi => data.pointOfInterest = {id: poi.id, name: poi.name});
}
@@ -223,7 +224,7 @@ const handleBatchPhotoEdit = async (flightId, data) => {
:photos="editBatchPhotos"
:copilots="flight.copilots"
:aircrafts="aircrafts"
@save="handleBatchPhotoEdit(flightId, $event)"
@save="handleBatchPhotoEdit"
@delete="deletePhoto"
/>