Revert "increase event search limit to 99"
This reverts commit b21fbc48b7
.
This commit is contained in:
parent
2e505db136
commit
42949ef54e
|
@ -58,16 +58,8 @@
|
||||||
<b slot="instance">{{ config.name }}</b>
|
<b slot="instance">{{ config.name }}</b>
|
||||||
</i18n>
|
</i18n>
|
||||||
</p>
|
</p>
|
||||||
<div v-if="events.elements.length > 0">
|
<div v-if="this.events.total > 0">
|
||||||
<multi-card class="my-4" :events="events.elements" />
|
<multi-card :events="events.elements.slice(0, 6)" />
|
||||||
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
|
||||||
<b-pagination
|
|
||||||
:total="events.total"
|
|
||||||
v-model="featuredEventPage"
|
|
||||||
:per-page="EVENT_PAGE_LIMIT"
|
|
||||||
>
|
|
||||||
</b-pagination>
|
|
||||||
</div>
|
|
||||||
<span class="view-all">
|
<span class="view-all">
|
||||||
<router-link :to="{ name: RouteName.SEARCH }"
|
<router-link :to="{ name: RouteName.SEARCH }"
|
||||||
>{{ $t("View everything") }} >></router-link
|
>{{ $t("View everything") }} >></router-link
|
||||||
|
@ -208,7 +200,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div v-if="events.total > 0">
|
<div v-if="events.total > 0">
|
||||||
<multi-card :events="events.elements" />
|
<multi-card :events="events.elements.slice(0, 8)" />
|
||||||
<span class="view-all">
|
<span class="view-all">
|
||||||
<router-link :to="{ name: RouteName.SEARCH }"
|
<router-link :to="{ name: RouteName.SEARCH }"
|
||||||
>{{ $t("View everything") }} >></router-link
|
>{{ $t("View everything") }} >></router-link
|
||||||
|
@ -255,16 +247,13 @@ import { IConfig } from "../types/config.model";
|
||||||
import { IFollowedGroupEvent } from "../types/followedGroupEvent.model";
|
import { IFollowedGroupEvent } from "../types/followedGroupEvent.model";
|
||||||
import Subtitle from "../components/Utils/Subtitle.vue";
|
import Subtitle from "../components/Utils/Subtitle.vue";
|
||||||
|
|
||||||
const EVENT_PAGE_LIMIT = 99;
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
apollo: {
|
apollo: {
|
||||||
events: {
|
events: {
|
||||||
query: FETCH_EVENTS,
|
query: FETCH_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
orderBy: EventSortField.BEGINS_ON,
|
orderBy: EventSortField.INSERTED_AT,
|
||||||
direction: SortDirection.ASC,
|
direction: SortDirection.DESC,
|
||||||
limit: EVENT_PAGE_LIMIT,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
currentActor: {
|
currentActor: {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="section container">
|
<div class="section container">
|
||||||
<!-- <h1 class="title">{{ $t("Explore") }}</h1> -->
|
<h1 class="title">{{ $t("Explore") }}</h1>
|
||||||
<section v-if="tag">
|
<section v-if="tag">
|
||||||
<i18n path="Events tagged with {tag}">
|
<i18n path="Events tagged with {tag}">
|
||||||
<b-tag slot="tag" type="is-light">{{ $t("#{tag}", { tag }) }}</b-tag>
|
<b-tag slot="tag" type="is-light">{{ $t("#{tag}", { tag }) }}</b-tag>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
v-if="!canSearchEvents && !canSearchGroups"
|
v-if="!canSearchEvents && !canSearchGroups"
|
||||||
>
|
>
|
||||||
<b-loading :active.sync="$apollo.loading"></b-loading>
|
<b-loading :active.sync="$apollo.loading"></b-loading>
|
||||||
<!-- <h2 class="title">{{ $t("Featured events") }}</h2> -->
|
<h2 class="title">{{ $t("Featured events") }}</h2>
|
||||||
<div v-if="events.elements.length > 0">
|
<div v-if="events.elements.length > 0">
|
||||||
<multi-card class="my-4" :events="events.elements" />
|
<multi-card class="my-4" :events="events.elements" />
|
||||||
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
||||||
|
@ -255,9 +255,9 @@ interface ISearchTimeOption {
|
||||||
end?: Date | null;
|
end?: Date | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const EVENT_PAGE_LIMIT = 99;
|
const EVENT_PAGE_LIMIT = 12;
|
||||||
|
|
||||||
const GROUP_PAGE_LIMIT = 99;
|
const GROUP_PAGE_LIMIT = 12;
|
||||||
|
|
||||||
const DEFAULT_RADIUS = 25; // value to set if radius is null but location set
|
const DEFAULT_RADIUS = 25; // value to set if radius is null but location set
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue