Bugfixing infinite scrollu u seznamu letu, novy vzhled detailu letu

This commit is contained in:
Michal Kváček
2026-01-26 16:24:15 +01:00
parent 348025afee
commit 65ea19664c
16 changed files with 202 additions and 167 deletions
@@ -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>