From 284f8d2c53eeb97fb3a4b9979f10d59753d94f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 6 Nov 2023 21:35:43 +0100 Subject: [PATCH] Nahled pred uploadem --- .../flights/form/FlightFormPhotos.vue | 17 +++++++++++++++++ src/pages/profile/flight/EditFlightPage.vue | 12 +++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/components/flights/form/FlightFormPhotos.vue b/src/components/flights/form/FlightFormPhotos.vue index 59ac675..393ccb1 100644 --- a/src/components/flights/form/FlightFormPhotos.vue +++ b/src/components/flights/form/FlightFormPhotos.vue @@ -2,6 +2,7 @@ import FormWrapper from "components/FormWrapper.vue"; import {reactive} from "vue"; import ComboboxInput from "components/inputs/ComboboxInput.vue"; +import {roundWithPrecision} from "../../../composables/utils"; const props = defineProps({ flight: { @@ -17,6 +18,10 @@ const props = defineProps({ const formData = reactive({ photos: [] }); + +const inlinePreview = (photo) => { + return URL.createObjectURL(photo); +}