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 @@
+
+
+
+
diff --git a/src/pages/profile/flight/edit/EditFlightPhotosPage.vue b/src/pages/profile/flight/edit/EditFlightPhotosPage.vue
index 48125df..8e93024 100644
--- a/src/pages/profile/flight/edit/EditFlightPhotosPage.vue
+++ b/src/pages/profile/flight/edit/EditFlightPhotosPage.vue
@@ -11,6 +11,7 @@ import {useBasicPhotoOperations} from "src/composables/photos/basicOperations";
import {storeToRefs} from "pinia";
import {useAircraftsStore} from "stores/Aircrafts";
import {usePhotosStore} from "stores/Photos";
+import {useQuasar} from "quasar";
const props = defineProps({
@@ -32,6 +33,7 @@ const {photos, isQueryRunning: photosLoading} = storeToRefs(usePhotosStore());
const isLoading = computed(() => aircraftsLoading.value || poisLoading.value || photosLoading.value);
+const $q = useQuasar();
const setTitlePhoto = (photo) => {
useFlightsStore().update(props.flight.id, {titlePhotoId: photo.id}).then(f => {
$q.notify(successObject("Úvodní fotografie úspěšně nastavena"));
diff --git a/src/pages/profile/flightPlanner/FlightPlanFlightPage.vue b/src/pages/profile/flightPlanner/FlightPlanFlightPage.vue
index 0fa7fa0..c18ff04 100644
--- a/src/pages/profile/flightPlanner/FlightPlanFlightPage.vue
+++ b/src/pages/profile/flightPlanner/FlightPlanFlightPage.vue
@@ -84,6 +84,7 @@ const createNewFlightFromPlan = (formData) => {
V plánu nemáš žádné letiště vzletu nebo přistání. Pro import letu musíš nahrát trasu.
diff --git a/src/pages/profile/flightPlanner/FlightPlanInfoPage.vue b/src/pages/profile/flightPlanner/FlightPlanInfoPage.vue
index f1cd650..843f6d1 100644
--- a/src/pages/profile/flightPlanner/FlightPlanInfoPage.vue
+++ b/src/pages/profile/flightPlanner/FlightPlanInfoPage.vue
@@ -22,7 +22,7 @@ const {aircrafts} = storeToRefs(useAircraftsStore());
const $q = useQuasar();
const handleFlightPlanInfoSave = (formData) => {
- useFlightPlansStore().update(props.flightPlan.value.id, formData).then(() => {
+ useFlightPlansStore().update(props.flightPlan.id, formData).then(() => {
$q.notify(successObject("Informace úspěšně uloženy"));
})
}
diff --git a/src/pages/profile/flightPlanner/FlightPlanWeatherPage.vue b/src/pages/profile/flightPlanner/FlightPlanWeatherPage.vue
index 6d1c179..18ae812 100644
--- a/src/pages/profile/flightPlanner/FlightPlanWeatherPage.vue
+++ b/src/pages/profile/flightPlanner/FlightPlanWeatherPage.vue
@@ -11,10 +11,9 @@ const props = defineProps({
-
Pozor, informace o počasí mají jen informativní charakter a mohou být nepřesné!
-
+