feat(front): 1400 home page, show upcoming events
This commit is contained in:
commit
2d2abfe930
|
@ -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: [] }
|
||||
|
|
Loading…
Reference in New Issue