Odstraneni vue-inner-image-zoom, oprava na dotazovani na verejny seznam letu u kopilota

This commit is contained in:
Michal Kváček
2023-11-07 17:47:23 +01:00
parent 284f8d2c53
commit 8beb7bb9d6
5 changed files with 4 additions and 14 deletions
-6
View File
@@ -1,6 +0,0 @@
import {boot} from "quasar/wrappers";
import InnerImageZoom from 'vue-inner-image-zoom';
export default boot(({app}) => {
app.component("inner-image-zoom", InnerImageZoom);
})
+2 -2
View File
@@ -13,8 +13,8 @@ ${FRAGMENT_COPILOT_LIST_INFO}
`;
export const COPILOT_DETAIL = gql`
query copilot($id: Int!) {
copilot(id: $id) {
query copilot($id: Int!, $pilotUsername: String) {
copilot(id: $id, pilotUsername: $pilotUsername) {
...copilotFullInfo
flights {
@@ -73,6 +73,8 @@ const isRequestPending = storeToRefs(useFlightsStore()).isMutationRunning;
const uploadInProgress = ref(false);
const handlePhotosUpload = (data) => {
// todo udelat batch napr. po 5 requestech
// TODO: udelat batch i pro rotace a davkove upravy (info)
const promises = [];
uploadInProgress.value = true;
for (const photo of data.photos) {