issue #1574 - home page & search page : 3 buttons for search

This commit is contained in:
Laurent GAY
2024-11-27 16:16:15 +01:00
committed by setop
parent 71cc09dd7a
commit 4489743853
3 changed files with 1 additions and 67 deletions

View File

@@ -716,7 +716,6 @@ const GROUP_PAGE_LIMIT = 16;
const { features } = useFeatures();
const { eventCategories } = useEventCategories();
const { isLongEvents } = useIsLongEvents();
const orderedCategories = computed(() => {
if (!eventCategories.value) return [];
@@ -829,36 +828,6 @@ const searchIsUrl = computed((): boolean => {
return url.protocol === "http:" || url.protocol === "https:";
});
const contentTypeMapping = computed(() => {
if (isLongEvents.value) {
return [
{
contentType: ContentType.EVENTS,
label: t("Events"),
},
{
contentType: ContentType.LONGEVENTS,
label: t("Activities"),
},
{
contentType: ContentType.GROUPS,
label: t("Groups"),
},
];
} else {
return [
{
contentType: ContentType.EVENTS,
label: t("Events"),
},
{
contentType: ContentType.GROUPS,
label: t("Groups"),
},
];
}
});
const eventStatuses = computed(() => {
return [
{