Fix nacitani vsech letu do profilove casti
This commit is contained in:
@@ -60,10 +60,10 @@ const togglePublicVisibility = (variables) => toggleVisibility({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
||||||
const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
||||||
filters.value = {aircraftId: aircraftId};
|
filters.value = {aircraftId: aircraftId};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadPage(false);
|
loadFirstPage();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ const togglePublicVisibility = (variables) => toggleVisibility({
|
|||||||
$q, store: useCopilotsStore(), object: copilot.value, variables
|
$q, store: useCopilotsStore(), object: copilot.value, variables
|
||||||
});
|
});
|
||||||
|
|
||||||
const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
||||||
filters.value = {copilotId: copilotId};
|
filters.value = {copilotId: copilotId};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadPage(false);
|
loadFirstPage();
|
||||||
});
|
});
|
||||||
|
|
||||||
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ onMounted(() => {
|
|||||||
{label: event.value.name}
|
{label: event.value.name}
|
||||||
])
|
])
|
||||||
});
|
});
|
||||||
loadPage(false);
|
loadFirstPage();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ const togglePublicVisibility = (variables) => toggleVisibility({
|
|||||||
|
|
||||||
const {isQueryRunning, event} = storeToRefs(useEventsStore());
|
const {isQueryRunning, event} = storeToRefs(useEventsStore());
|
||||||
|
|
||||||
const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
||||||
filters.value = {eventId: eventId}
|
filters.value = {eventId: eventId}
|
||||||
|
|
||||||
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ const togglePublicVisibility = (variables) => toggleVisibility({
|
|||||||
$q, store: usePointsOfInterestStore(), object: pointOfInterest.value, variables
|
$q, store: usePointsOfInterestStore(), object: pointOfInterest.value, variables
|
||||||
});
|
});
|
||||||
|
|
||||||
const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch});
|
||||||
filters.value = {pointOfInterestId: poiId};
|
filters.value = {pointOfInterestId: poiId};
|
||||||
loadPage(false);
|
loadFirstPage();
|
||||||
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore());
|
||||||
const {isQueryRunning, pointOfInterest} = storeToRefs(usePointsOfInterestStore());
|
const {isQueryRunning, pointOfInterest} = storeToRefs(usePointsOfInterestStore());
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user