Bugfixing

This commit is contained in:
Michal Kváček
2024-10-14 06:38:52 +02:00
parent be977ee241
commit 92c9e53ea0
5 changed files with 19 additions and 8 deletions
@@ -1,4 +1,4 @@
<script setup></script>` <script setup></script>
<template> <template>
<div class="row"> <div class="row">
+1 -2
View File
@@ -75,6 +75,7 @@ const handlePositionNotFound = () => {
<q-btn @click="resetMap" icon="gps_fixed" round flat text-color="green" title="Nastav pozici na mapě"/> <q-btn @click="resetMap" icon="gps_fixed" round flat text-color="green" title="Nastav pozici na mapě"/>
</template> </template>
</q-input> </q-input>
<ComboboxInput v-model="formData.type" :options="types" label="Kategorie" v-bind="commonProps"/>
<SlugInput <SlugInput
v-if="formData.isPublic" v-if="formData.isPublic"
@@ -87,7 +88,6 @@ const handlePositionNotFound = () => {
/> />
<q-checkbox v-model="formData.isPublic" label="Veřejný?"/> <q-checkbox v-model="formData.isPublic" label="Veřejný?"/>
<MapGPSInput <MapGPSInput
v-if="poiNameForMap" v-if="poiNameForMap"
:key="poiNameForMap" :key="poiNameForMap"
@@ -100,6 +100,5 @@ const handlePositionNotFound = () => {
<q-input type="textarea" v-model="formData.description" v-bind="commonProps" label="Popis"/> <q-input type="textarea" v-model="formData.description" v-bind="commonProps" label="Popis"/>
<ComboboxInput v-model="formData.type" :options="types" label="Kategorie" v-bind="commonProps"/>
</FormWrapper> </FormWrapper>
</template> </template>
+2 -2
View File
@@ -9,7 +9,7 @@ import {useAirportsStore} from "stores/Airports";
import {useAppStore} from "stores/App"; import {useAppStore} from "stores/App";
import FlightFormSteps from "components/flights/form/FlightFormSteps.vue"; import FlightFormSteps from "components/flights/form/FlightFormSteps.vue";
import FlightFormBasic from "components/flights/form/FlightFormBasic.vue"; import FlightFormBasic from "components/flights/form/FlightFormBasic.vue";
import FlightEditSkeleton from "components/flights/skeletons/FlightEditSkeleton.vue"; import FlightEditBasicInfoSkeleton from "components/flights/skeletons/FlightEditBasicInfoSkeleton.vue";
useAppStore().setPageTitle("Nový let"); useAppStore().setPageTitle("Nový let");
useAppStore().setBreadcrumbs([ useAppStore().setBreadcrumbs([
@@ -43,7 +43,7 @@ const handleSave = (formData) => {
<template> <template>
<FlightFormSteps :disabled="['copilot', 'track', 'photos', 'notes']"/> <FlightFormSteps :disabled="['copilot', 'track', 'photos', 'notes']"/>
<FlightEditSkeleton step="basic" v-if="loading"/> <FlightEditBasicInfoSkeleton v-if="loading"/>
<FlightFormBasic <FlightFormBasic
v-else v-else
:is-request-pending="isMutationRunning" :is-request-pending="isMutationRunning"
@@ -1,5 +1,6 @@
<script setup> <script setup>
import FlightPlanWeatherInfo from "components/flightPlans/FlightPlanWeatherInfo.vue"; import FlightPlanWeatherInfo from "components/flightPlans/FlightPlanWeatherInfo.vue";
import BasicInfoBanner from "components/banners/BasicInfoBanner.vue";
const props = defineProps({ const props = defineProps({
flightPlan: { flightPlan: {
@@ -10,6 +11,10 @@ const props = defineProps({
</script> </script>
<template> <template>
<FlightPlanWeatherInfo :flight-plan="flightPlan"/>
<BasicInfoBanner>
Pozor, informace o počasí mají jen informativní charakter a mohou být nepřesné!
</BasicInfoBanner>
<FlightPlanWeatherInfo :flight-plan="flightPlan"/>
</template> </template>
@@ -6,6 +6,7 @@ import {usePointsOfInterestStore} from "stores/PointsOfInterest";
import {successObject} from "src/composables/dialog"; import {successObject} from "src/composables/dialog";
import {useAppStore} from "stores/App"; import {useAppStore} from "stores/App";
import {storeToRefs} from "pinia"; import {storeToRefs} from "pinia";
import {usePointsOfInterestTypeStore} from "stores/PointOfInterestType";
const $q = useQuasar(); const $q = useQuasar();
const router = useRouter(); const router = useRouter();
@@ -22,10 +23,16 @@ useAppStore().setBreadcrumbs([
{label: "Nové"}, {label: "Nové"},
]) ])
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore()); usePointsOfInterestTypeStore().fetch();
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore());
const {types} = storeToRefs(usePointsOfInterestTypeStore());
</script> </script>
<template> <template>
<POIForm @save="handleSave" :is-request-pending="isMutationRunning"/> <POIForm
:types="types"
:is-request-pending="isMutationRunning"
@save="handleSave"
/>
</template> </template>