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