Bugfixy
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user