diff --git a/js/src/components/Event/EventMetadataList.vue b/js/src/components/Event/EventMetadataList.vue index a1ca6310..313fda30 100644 --- a/js/src/components/Event/EventMetadataList.vue +++ b/js/src/components/Event/EventMetadataList.vue @@ -16,6 +16,7 @@ > elem) + ); } localizedCategories: Record = { diff --git a/js/src/components/Event/OrganizerPicker.vue b/js/src/components/Event/OrganizerPicker.vue index 99e04404..eaca31a8 100644 --- a/js/src/components/Event/OrganizerPicker.vue +++ b/js/src/components/Event/OrganizerPicker.vue @@ -15,7 +15,7 @@
diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 98b060fe..b68be979 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -794,7 +794,7 @@ "Unable to save your participation in this browser.": "Unable to save your participation in this browser.", "return to the event's page": "return to the event's page", "View all events": "View all events", - "You will find here all the events you have created or of which you are a participant.": "You will find here all the events you have created or of which you are a participant.", + "You will find here all the events you have created or of which you are a participant, as well as events organized by groups you follow or are a member of.": "You will find here all the events you have created or of which you are a participant, as well as events organized by groups you follow or are a member of.", "Create event": "Create event", "You didn't create or join any event yet.": "You didn't create or join any event yet.", "create an event": "create an event", diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index ea54e332..e8b0fc11 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1115,7 +1115,7 @@ "You were promoted to moderator by {profile}.": "Vous avez été promu⋅e modérateur⋅ice par {profile}.", "You will be able to add an avatar and set other options in your account settings.": "Vous pourrez ajouter un avatar et définir d'autres options dans les paramètres de votre compte.", "You will be redirected to the original instance": "Vous allez être redirigé⋅e vers l'instance d'origine", - "You will find here all the events you have created or of which you are a participant.": "Vous trouverez ici tous les événements que vous avez créé ou dont vous êtes un·e participant·e.", + "You will find here all the events you have created or of which you are a participant, as well as events organized by groups you follow or are a member of.": "Vous trouverez ici tous les événements que vous avez créé ou dont vous êtes un·e participant·e, ainsi que les événements organisés par les groupes que vous suivez ou dont vous êtes membre.", "You wish to participate to the following event": "Vous souhaitez participer à l'événement suivant", "You'll get a weekly recap every Monday for upcoming events, if you have any.": "Vous recevrez un récapitulatif hebdomadaire chaque lundi pour les événements de la semaine, si vous en avez.", "You'll need to change the URLs where there were previously entered.": "Vous devrez changer les URLs là où vous les avez entrées précédemment.", diff --git a/js/src/mixins/AddressAutoCompleteMixin.ts b/js/src/mixins/AddressAutoCompleteMixin.ts index 7616a3de..b5074b1a 100644 --- a/js/src/mixins/AddressAutoCompleteMixin.ts +++ b/js/src/mixins/AddressAutoCompleteMixin.ts @@ -6,7 +6,6 @@ import { CONFIG } from "../graphql/config"; import { IConfig } from "../types/config.model"; import debounce from "lodash/debounce"; import { DebouncedFunc } from "lodash"; -import { PropType } from "vue"; @Component({ components: { @@ -18,7 +17,7 @@ import { PropType } from "vue"; }, }) export default class AddressAutoCompleteMixin extends Vue { - @Prop({ required: true, type: Object as PropType }) + @Prop({ required: true }) value!: IAddress; gettingLocationError: string | null = null; diff --git a/js/src/services/EventMetadata.ts b/js/src/services/EventMetadata.ts index 4008ebb9..6500173b 100644 --- a/js/src/services/EventMetadata.ts +++ b/js/src/services/EventMetadata.ts @@ -14,7 +14,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ description: i18n.t( "Whether the event is accessible with a wheelchair" ) as string, - value: "", + value: "no", type: EventMetadataType.STRING, keyType: EventMetadataKeyType.CHOICE, choices: { @@ -29,7 +29,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ key: "mz:accessibility:live:subtitle", label: i18n.t("Subtitles") as string, description: i18n.t("Whether the event live video is subtitled") as string, - value: "", + value: "false", type: EventMetadataType.BOOLEAN, keyType: EventMetadataKeyType.PLAIN, choices: { @@ -47,7 +47,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ description: i18n.t( "Whether the event is interpreted in sign language" ) as string, - value: "", + value: "false", type: EventMetadataType.BOOLEAN, keyType: EventMetadataKeyType.PLAIN, choices: { diff --git a/js/src/views/Admin/AdminUserProfile.vue b/js/src/views/Admin/AdminUserProfile.vue index cfb0b575..e3da9277 100644 --- a/js/src/views/Admin/AdminUserProfile.vue +++ b/js/src/views/Admin/AdminUserProfile.vue @@ -101,7 +101,7 @@ import { IPerson } from "../../types/actor"; // @ts-ignore const { user } = this; return { - title: user.email, + title: user?.email, }; }, }) diff --git a/js/src/views/Event/MyEvents.vue b/js/src/views/Event/MyEvents.vue index 3c8dd937..bdf9285d 100644 --- a/js/src/views/Event/MyEvents.vue +++ b/js/src/views/Event/MyEvents.vue @@ -6,7 +6,7 @@

{{ $t( - "You will find here all the events you have created or of which you are a participant." + "You will find here all the events you have created or of which you are a participant, as well as events organized by groups you follow or are a member of." ) }}

@@ -434,24 +434,28 @@ export default class MyEvents extends Vue { loadMoreFutureParticipations(): void { this.futurePage += 1; - this.$apollo.queries.futureParticipations.fetchMore({ - // New variables - variables: { - page: this.futurePage, - limit: this.limit, - }, - }); + if (this.$apollo.queries.futureParticipations) { + this.$apollo.queries.futureParticipations.fetchMore({ + // New variables + variables: { + page: this.futurePage, + limit: this.limit, + }, + }); + } } loadMorePastParticipations(): void { this.pastPage += 1; - this.$apollo.queries.pastParticipations.fetchMore({ - // New variables - variables: { - page: this.pastPage, - limit: this.limit, - }, - }); + if (this.$apollo.queries.pastParticipations) { + this.$apollo.queries.pastParticipations.fetchMore({ + // New variables + variables: { + page: this.pastPage, + limit: this.limit, + }, + }); + } } eventDeleted(eventid: string): void { diff --git a/js/src/views/Home.vue b/js/src/views/Home.vue index ebb45a25..7af4b9dc 100644 --- a/js/src/views/Home.vue +++ b/js/src/views/Home.vue @@ -283,7 +283,7 @@

- +
event_id) .includes(id) ) - .slice(0, 3); + .slice(0, 4); } } diff --git a/lib/mobilizon/followed_group_activity.ex b/lib/mobilizon/followed_group_activity.ex index 7ef7e777..e13863c5 100644 --- a/lib/mobilizon/followed_group_activity.ex +++ b/lib/mobilizon/followed_group_activity.ex @@ -14,7 +14,7 @@ defmodule Mobilizon.FollowedGroupActivity do integer() | nil, integer() | nil ) :: Page.t(Event.t()) - def user_followed_group_events(user_id, after_datetime, page \\ nil, limit \\ nil) do + def user_followed_group_events(user_id, after_datetime \\ nil, page \\ nil, limit \\ nil) do Event |> distinct([e], e.id) |> join(:left, [e], p in Participant, on: e.id == p.event_id)