Fix z-indexu pro navigaci, pridani prostoru do verejne casti detialu letu

This commit is contained in:
Michal Kváček
2024-06-25 22:27:23 +02:00
parent 25b1735c87
commit 16650cc0cb
3 changed files with 17 additions and 8 deletions
@@ -24,6 +24,8 @@ import ContentCard from "components/ContentCard.vue";
import {usePhotosStore} from "stores/Photos";
import {computed, onMounted} from "vue";
import {publicFlightBreadcrumbs} from "src/composables/breadcrumbs";
import {useAirspacesStore} from "stores/Airspaces";
import {useAirportsStore} from "stores/Airports";
const {isQueryRunning, flight} = storeToRefs(useFlightsStore());
@@ -36,8 +38,13 @@ const props = defineProps({
onMounted(() => {
usePhotosStore().fetchPublic({flightId: flight.value.id});
useAirspacesStore().fetch();
useAirportsStore().fetch();
})
const {isQueryRunning: arePhotosLoading, photos: flightPhotos} = storeToRefs(usePhotosStore());
const {airspaces} = storeToRefs(useAirspacesStore());
const {airports} = storeToRefs(useAirportsStore());
const flightNameFormatted = flightName(flight.value);
const event = computed(() => flight.value.event);
@@ -80,8 +87,11 @@ useMeta(() => metaData({
<q-inner-loading v-if="arePhotosLoading"/>
<PhotoGallery :photos="flightPhotos" v-else-if="!arePhotosLoading && flightPhotos.length > 0"/>
<FlightTrackMap
:key="flight.id"
:airspaces-data="airspaces"
:airports="airports"
:key="flight.id"
:flight="flight"
:show-info-window="true"
:showLayerControls="false"
:photos="flightPhotos"/>
</q-no-ssr>