Bugfixing infinite scrollu u seznamu letu, novy vzhled detailu letu
This commit is contained in:
@@ -41,11 +41,11 @@ useAppStore().setBreadcrumbs([
|
||||
{label: pointOfInterest.value.name}
|
||||
]);
|
||||
|
||||
const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetchPublic});
|
||||
filters.value = {pointOfInterestId: pointOfInterest.value.id};
|
||||
const {loadPage, handleFiltersChanged, hasMoreData} = usePagination({fetchFunction: useFlightsStore().fetchPublic});
|
||||
|
||||
onMounted(() => {
|
||||
usePhotosStore().fetchPublic({pointOfInterestId: pointOfInterest.value.id});
|
||||
loadPage(false);
|
||||
handleFiltersChanged({pointOfInterestId: pointOfInterest.value.id});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -79,7 +79,8 @@ onMounted(() => {
|
||||
:is-query-running="areFlightsLoading"
|
||||
:items-per-page="paginationLimit"
|
||||
:public="true"
|
||||
@load-more="loadPage(true)"
|
||||
:has-more-data="hasMoreData"
|
||||
@load-more="loadPage($event.index, $event.done)"
|
||||
/>
|
||||
</q-card-section>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user