From 532aee9f327c038129f377e7c2b29eaa314ee8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 27 Jan 2025 16:41:32 +0100 Subject: [PATCH] Commit po dlohe dobe --- src/components/flightPlans/FlightPlanForm.vue | 3 ++- .../inputs/entities/AirportInput.vue | 19 +++++++++++++++++++ .../flight/edit/EditFlightPhotosPage.vue | 2 ++ .../flightPlanner/FlightPlanFlightPage.vue | 1 + .../flightPlanner/FlightPlanInfoPage.vue | 2 +- .../flightPlanner/FlightPlanWeatherPage.vue | 3 +-- 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 src/components/inputs/entities/AirportInput.vue diff --git a/src/components/flightPlans/FlightPlanForm.vue b/src/components/flightPlans/FlightPlanForm.vue index d85ba8e..b778228 100644 --- a/src/components/flightPlans/FlightPlanForm.vue +++ b/src/components/flightPlans/FlightPlanForm.vue @@ -3,7 +3,7 @@ import {commonProps} from "src/composables/inputs"; import DatetimePicker from "components/inputs/DatetimePicker.vue"; import ComboboxInput from "components/inputs/ComboboxInput.vue"; import FormWrapper from "components/FormWrapper.vue"; -import {reactive} from "vue"; +import {computed, reactive} from "vue"; import CopyLinkButton from "components/inputs/CopyLinkButton.vue"; import {useLoggedUserStore} from "stores/LoggedUser"; import {storeToRefs} from "pinia"; @@ -22,6 +22,7 @@ const props = defineProps({ } }) +const aircrafts = computed(() => props.aircrafts.map(a => ({id: a.id, name: a.callSign}))); const formData = reactive({ name: props.flightPlan.name || null, diff --git a/src/components/inputs/entities/AirportInput.vue b/src/components/inputs/entities/AirportInput.vue new file mode 100644 index 0000000..4e84fc2 --- /dev/null +++ b/src/components/inputs/entities/AirportInput.vue @@ -0,0 +1,19 @@ + + +