Bugfixing
This commit is contained in:
@@ -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}});
|
||||
|
||||
Reference in New Issue
Block a user