Vkladani mista na konkretni pozici
This commit is contained in:
@@ -29,6 +29,7 @@ import PublishButton from "components/inputs/PublishButton.vue";
|
||||
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";
|
||||
|
||||
const flightId = parseInt(useRoute().params.id);
|
||||
const loggedUser = storeToRefs(useLoggedUserStore()).user;
|
||||
@@ -53,9 +54,11 @@ const handleDeleteAndRedirect = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const {airspaces: airspacesData} = storeToRefs(useAirspacesStore());
|
||||
const {airspaces} = storeToRefs(useAirspacesStore());
|
||||
const {airports} = storeToRefs(useAirportsStore());
|
||||
onMounted(() => {
|
||||
useAirspacesStore().fetch();
|
||||
useAirportsStore().fetch();
|
||||
});
|
||||
|
||||
const togglePublicVisibility = (variables) => toggleVisibility({
|
||||
@@ -147,7 +150,8 @@ const togglePublicVisibility = (variables) => toggleVisibility({
|
||||
|
||||
<q-no-ssr v-else>
|
||||
<FlightTrackMap
|
||||
:airspaces-data="airspacesData"
|
||||
:airspaces-data="airspaces"
|
||||
:airports="airports"
|
||||
:flight="flight"
|
||||
:photos="flight.photos"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user