Fix nacitani spatnych dat do mapy u udalosti

This commit is contained in:
Michal Kváček
2024-02-29 08:19:24 +01:00
parent 7a45a0133e
commit f0a4c439dc
8 changed files with 59 additions and 56 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ const loggedUser = storeToRefs(useLoggedUserStore()).user;
<article class="q-my-lg" v-html="event.description"/>
<EventFlightsMap :event="event" :only-public="false" />
<EventFlightsMap :event-id="eventId" :only-public="false" />
<h3>Lety</h3>
+4 -2
View File
@@ -7,13 +7,16 @@ import BasicInfoBanner from "components/banners/BasicInfoBanner.vue";
import {useFlightsStore} from "stores/Flights";
import {storeToRefs} from "pinia";
import {loadPage, paginationLimit} from "src/composables/pagination";
import {onMounted} from "vue";
useAppStore().setPageTitle("Moje lety");
const loadNextPage = (appendItems) => loadPage({
fetchFunc: useFlightsStore().fetch, appendItems
});
loadNextPage(false);
onMounted(() => {
loadNextPage(false);
});
const {flights, totalItemsCount, isQueryRunning} = storeToRefs(useFlightsStore());
</script>
@@ -36,7 +39,6 @@ const {flights, totalItemsCount, isQueryRunning} = storeToRefs(useFlightsStore()
:items-per-page="paginationLimit"
:total-items-count="totalItemsCount"
@load-more="loadNextPage(true)"
/>
<FAB mode="add" :router-link="{name: 'addFlight'}"/>