issue#9: Increase the limit of the displayed events on home page to the max (99)

This commit is contained in:
summersamara 2023-10-03 18:03:41 +02:00
parent 49a9d27020
commit a883f2467a

View file

@ -31,7 +31,7 @@
:event="event" :event="event"
:key="event.uuid" :key="event.uuid"
/> />
<more-content <!--<more-content
:to="{ :to="{
name: RouteName.SEARCH, name: RouteName.SEARCH,
query: { query: {
@ -40,7 +40,7 @@
}" }"
> >
{{ t("View more events") }} {{ t("View more events") }}
</more-content> </more-content>-->
</template> </template>
</close-content> </close-content>
</template> </template>
@ -71,6 +71,7 @@ const { result: resultEvents, loading: loadingEvents } = useQuery<{
}>(FETCH_EVENTS, { }>(FETCH_EVENTS, {
orderBy: EventSortField.BEGINS_ON, orderBy: EventSortField.BEGINS_ON,
direction: SortDirection.ASC, direction: SortDirection.ASC,
limit: 99
}); });
const events = computed( const events = computed(
() => resultEvents.value?.events ?? { total: 0, elements: [] } () => resultEvents.value?.events ?? { total: 0, elements: [] }