diff --git a/src/components/Home/SearchFields.vue b/src/components/Home/SearchFields.vue
index b6c87e62a..7a04715fc 100644
--- a/src/components/Home/SearchFields.vue
+++ b/src/components/Home/SearchFields.vue
@@ -58,7 +58,7 @@
class="search-Activity min-w-40 mr-1 mb-1"
native-type="submit"
icon-left="calendar-star"
- v-if="islongEvents"
+ v-if="search == null && isLongEvents"
>
{{ t("Activities") }}
@@ -100,7 +100,7 @@ const props = defineProps<{
const router = useRouter();
const route = useRoute();
-const { islongEvents } = useIsLongEvents();
+const { isLongEvents } = useIsLongEvents();
const emit = defineEmits<{
(event: "update:address", address: IAddress | null): void;
diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue
index 40dbc0417..af5192e63 100644
--- a/src/components/NavBar.vue
+++ b/src/components/NavBar.vue
@@ -179,6 +179,39 @@
+ -
+ {{ t("Events") }}
+
+ -
+ {{ t("Activities") }}
+
+ -
+ {{ t("Groups") }}
+
-
;
}>(LONG_EVENTS);
- const islongEvents = computed(() => result.value?.config.longEvents);
- return { islongEvents, error, loading };
+ const isLongEvents = computed(() => result.value?.config.longEvents);
+ return { isLongEvents, error, loading };
}
export function useAnalytics() {
diff --git a/src/views/SearchView.vue b/src/views/SearchView.vue
index 2424306ff..f3fb69005 100644
--- a/src/views/SearchView.vue
+++ b/src/views/SearchView.vue
@@ -716,6 +716,7 @@ const GROUP_PAGE_LIMIT = 16;
const { features } = useFeatures();
const { eventCategories } = useEventCategories();
+const { isLongEvents } = useIsLongEvents();
const orderedCategories = computed(() => {
if (!eventCategories.value) return [];
@@ -828,6 +829,36 @@ 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 [
{