This commit is contained in:
Michal Kváček
2023-08-26 11:45:50 +02:00
parent ccc8ff22e2
commit dcc3230cbe
18 changed files with 132 additions and 42 deletions
@@ -55,6 +55,8 @@ const handleFlightEdit = (data) => {
})
}
const isRequestPending = storeToRefs(useFlightsStore()).isMutationRunning;
const handlePhotosUpload = (data) => {
const promises = [];
for (const photo of data.photos) {
@@ -134,6 +136,7 @@ const openPhotoEdit = (photo) => {
<q-tab-panel name="photos">
<FlightFormPhotos
:flight="flight"
:is-request-pending="isRequestPending"
@save="handlePhotosUpload"
/>
@@ -144,6 +147,8 @@ const openPhotoEdit = (photo) => {
@save="handlePhotoUpdate"
/>
Tu nejsou videt fotky po nahrani
<PhotosList
:photos="flight.photos"
@edit="openPhotoEdit"