feat(front): 1400 home page, show upcoming events

This commit is contained in:
setop 2024-03-06 10:21:49 +01:00
commit 2d2abfe930
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
v-on="attrs"
>
<template #title>
{{ t("Last published events") }}
{{ t("Upcoming events") }}
</template>
<template #subtitle>
<i18n-t
@ -69,8 +69,8 @@ const attrs = useAttrs();
const { result: resultEvents, loading: loadingEvents } = useQuery<{
events: Paginate<IEvent>;
}>(FETCH_EVENTS, {
orderBy: EventSortField.INSERTED_AT,
direction: SortDirection.DESC,
orderBy: EventSortField.BEGINS_ON,
direction: SortDirection.ASC,
});
const events = computed(
() => resultEvents.value?.events ?? { total: 0, elements: [] }