Bugfixing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script setup></script>`
|
||||
<script setup></script>
|
||||
|
||||
<template>
|
||||
<div class="row">
|
||||
|
||||
@@ -75,6 +75,7 @@ const handlePositionNotFound = () => {
|
||||
<q-btn @click="resetMap" icon="gps_fixed" round flat text-color="green" title="Nastav pozici na mapě"/>
|
||||
</template>
|
||||
</q-input>
|
||||
<ComboboxInput v-model="formData.type" :options="types" label="Kategorie" v-bind="commonProps"/>
|
||||
|
||||
<SlugInput
|
||||
v-if="formData.isPublic"
|
||||
@@ -87,7 +88,6 @@ const handlePositionNotFound = () => {
|
||||
/>
|
||||
<q-checkbox v-model="formData.isPublic" label="Veřejný?"/>
|
||||
|
||||
|
||||
<MapGPSInput
|
||||
v-if="poiNameForMap"
|
||||
:key="poiNameForMap"
|
||||
@@ -100,6 +100,5 @@ const handlePositionNotFound = () => {
|
||||
|
||||
<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>
|
||||
</template>
|
||||
|
||||
@@ -9,7 +9,7 @@ import {useAirportsStore} from "stores/Airports";
|
||||
import {useAppStore} from "stores/App";
|
||||
import FlightFormSteps from "components/flights/form/FlightFormSteps.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().setBreadcrumbs([
|
||||
@@ -43,7 +43,7 @@ const handleSave = (formData) => {
|
||||
<template>
|
||||
<FlightFormSteps :disabled="['copilot', 'track', 'photos', 'notes']"/>
|
||||
|
||||
<FlightEditSkeleton step="basic" v-if="loading"/>
|
||||
<FlightEditBasicInfoSkeleton v-if="loading"/>
|
||||
<FlightFormBasic
|
||||
v-else
|
||||
:is-request-pending="isMutationRunning"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import FlightPlanWeatherInfo from "components/flightPlans/FlightPlanWeatherInfo.vue";
|
||||
import BasicInfoBanner from "components/banners/BasicInfoBanner.vue";
|
||||
|
||||
const props = defineProps({
|
||||
flightPlan: {
|
||||
@@ -10,6 +11,10 @@ const props = defineProps({
|
||||
</script>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -6,6 +6,7 @@ import {usePointsOfInterestStore} from "stores/PointsOfInterest";
|
||||
import {successObject} from "src/composables/dialog";
|
||||
import {useAppStore} from "stores/App";
|
||||
import {storeToRefs} from "pinia";
|
||||
import {usePointsOfInterestTypeStore} from "stores/PointOfInterestType";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
@@ -22,10 +23,16 @@ useAppStore().setBreadcrumbs([
|
||||
{label: "Nové"},
|
||||
])
|
||||
|
||||
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore());
|
||||
usePointsOfInterestTypeStore().fetch();
|
||||
|
||||
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore());
|
||||
const {types} = storeToRefs(usePointsOfInterestTypeStore());
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<POIForm @save="handleSave" :is-request-pending="isMutationRunning"/>
|
||||
<POIForm
|
||||
:types="types"
|
||||
:is-request-pending="isMutationRunning"
|
||||
@save="handleSave"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user