Editace fotek v modalu, lepsi datetime picker

This commit is contained in:
Michal Kváček
2023-07-10 08:12:48 +02:00
parent 3d88397d21
commit bbb21278fd
18 changed files with 274 additions and 103 deletions
+17 -11
View File
@@ -1,24 +1,30 @@
import gql from "graphql-tag";
import {FRAGMENT_FLIGHT_FULL_INFO} from "src/graphql/fragments/flight";
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
export const UPLOAD_PHOTO = gql`
mutation uploadPhoto($input: UploadPhotoInput!) {
uploadPhoto(input: $input) {
url
thumbnailUrl
filename
name
description
...photoFullInfo
}
}
${FRAGMENT_PHOTO_FULL_INFO}
`
export const EDIT_FLIGHT = gql`
mutation editFlight($id: Int!, $input: EditFlightInput!) {
editFlight(id: $id, input: $input) {
...flightFullInfo
export const EDIT_PHOTO = gql`
mutation editPhoto($id: Int!, $input: EditPhotoInput!) {
editPhoto(id: $id, input: $input) {
...photoFullInfo
}
}
${FRAGMENT_FLIGHT_FULL_INFO}
${FRAGMENT_PHOTO_FULL_INFO}
`;
export const DELETE_PHOTO = gql`
mutation deletePhoto($id: Int!) {
deletePhoto(id: $id) {
id
}
}
`;