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 @@ + + +