From e01bafee73171daa16b7fc6e4a3af52b65ff0304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Tue, 11 Jun 2024 22:03:53 +0200 Subject: [PATCH] Detail planovace, verejne planovain --- src/components/flightPlans/FlightPlanForm.vue | 19 ++- src/components/flightPlans/FlightPlanMap.vue | 5 +- .../flightPlans/FlightPlanRouteTable.vue | 4 +- .../flightPlans/FlightPlanSideControls.vue | 4 +- src/composables/flightPlan.js | 4 +- src/graphql/fragments/flightPlan.js | 5 + src/graphql/queries/flightPlan.js | 4 +- .../public/pilotProfile/FlightPlanDetail.vue | 114 ++++++++++++++++++ src/router/routes.js | 1 + src/stores/FlightPlans.js | 11 +- 10 files changed, 157 insertions(+), 14 deletions(-) create mode 100644 src/pages/public/pilotProfile/FlightPlanDetail.vue diff --git a/src/components/flightPlans/FlightPlanForm.vue b/src/components/flightPlans/FlightPlanForm.vue index bbc11b8..3085067 100644 --- a/src/components/flightPlans/FlightPlanForm.vue +++ b/src/components/flightPlans/FlightPlanForm.vue @@ -3,8 +3,10 @@ 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 {onMounted, reactive} from "vue"; -import {setDefaultData} from "src/composables/form/formHandling"; +import {reactive} from "vue"; +import CopyLinkButton from "components/inputs/CopyLinkButton.vue"; +import {useLoggedUserStore} from "stores/LoggedUser"; +import {storeToRefs} from "pinia"; const props = defineProps({ flightPlan: { @@ -31,7 +33,10 @@ const formData = reactive({ id: props.flightPlan.aircraft.id, name: props.flightPlan.aircraft.callSign } : null, plannedSpeed: props.flightPlan.plannedSpeed || 150, + description: props.flightPlan.description || null, }); + +const {user} = storeToRefs(useLoggedUserStore());