Bugfixing

This commit is contained in:
Michal Kváček
2024-05-07 08:24:57 +02:00
parent a56c6828b1
commit 9daea5974b
6 changed files with 13 additions and 4 deletions
@@ -85,6 +85,9 @@ const handleMarkerMove = async (idx, event) => {
:airports="airports"
v-bind="$attrs"
:fullscreen-control="false"
:show-info-window="true"
:show-layer-controls="true"
:allow-add-marker="true"
@add-to-route="addMarker"
>
+1 -2
View File
@@ -76,8 +76,7 @@ const highlightAirspace = (airspace) => {
</div>
<div v-if="infoWindow.poi">
<q-img :src="infoWindow.poi.titlePhoto.thumbnailUrl" v-if="infoWindow.poi.titlePhoto"/>
{{ infoWindow.poi.name }}
<q-img :src="infoWindow.poi.titlePhoto.thumbnailUrl" width="300px" v-if="infoWindow.poi.titlePhoto"/>
</div>
<template v-if="infoWindow.airspaces?.length">
+1
View File
@@ -188,6 +188,7 @@ const handleAirportClick = (airport) => {
<AirspaceInfoWindow
v-if="showInfoWindow && infoWindow.active"
:info-window="infoWindow"
:show-actions="allowAddMarker"
:highlighted-airspaces="highlightedAirspaces"
@close="infoWindow.active=false"
@add-to-route="emits('add-to-route', $event)"
@@ -30,6 +30,7 @@ import CopyLinkButton from "components/inputs/CopyLinkButton.vue";
import {TOGGLE_FLIGHT_PUBLISH} from "src/graphql/mutations/flight";
import {useAirspacesStore} from "stores/Airspaces";
import {useAirportsStore} from "stores/Airports";
import MapWrapper from "components/map/MapWrapper.vue";
const flightId = parseInt(useRoute().params.id);
const loggedUser = storeToRefs(useLoggedUserStore()).user;
@@ -152,6 +153,8 @@ const togglePublicVisibility = (variables) => toggleVisibility({
<FlightTrackMap
:airspaces-data="airspaces"
:airports="airports"
:show-info-window="true"
:show-layer-controls="true"
:flight="flight"
:photos="flight.photos"
/>
@@ -24,11 +24,11 @@ const {flightPlans, isQueryRunning} = storeToRefs(useFlightPlansStore());
</script>
<template>
<BasicListSkeleton v-if="isQueryRunning || !flightPlans"/>
<BasicListSkeleton :items=5 v-if="isQueryRunning || !flightPlans"/>
<BasicInfoBanner
v-else-if="!isQueryRunning && flightPlans.length === 0"
:route-add='{name: "addOrganization"}'
:route-add='{name: "newFlightPlan"}'
>
Aktuálně nemáš žádné naplánované lety.
</BasicInfoBanner>
@@ -8,7 +8,10 @@ const $router = useRouter();
onMounted(async () => {
await useFlightPlansStore().create({
name: "",
isDefaultName: true,
isPublic: false,
isEditableByCopilot: false,
plannedSpeed: 150,
markers: []
}).then(fp => {
return $router.replace({name: "editFlightPlan", params: {id: fp.id}});