=> {
actorId: anonymousActorId.value,
email: anonymousParticipation.email,
message: anonymousParticipation.message,
- locale: locale.value,
+ locale: locale,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
});
};
diff --git a/js/src/components/Settings/SettingsOnboarding.vue b/js/src/components/Settings/SettingsOnboarding.vue
index fa936c5ad..e9a489b7c 100644
--- a/js/src/components/Settings/SettingsOnboarding.vue
+++ b/js/src/components/Settings/SettingsOnboarding.vue
@@ -71,7 +71,7 @@ const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
const { loggedUser } = useUserSettings();
onMounted(() => {
- updateLocale(locale.value as string);
+ updateLocale(locale as unknown as string);
doUpdateSetting({ timezone });
});
diff --git a/js/src/views/About/PrivacyView.vue b/js/src/views/About/PrivacyView.vue
index 2d8e0d42f..b7ca7db2c 100644
--- a/js/src/views/About/PrivacyView.vue
+++ b/js/src/views/About/PrivacyView.vue
@@ -22,10 +22,10 @@ const { locale } = useI18n({ useScope: "global" });
const { result: configResult } = useQuery<{ config: IConfig }>(
PRIVACY,
() => ({
- locale: locale.value,
+ locale: locale,
}),
() => ({
- enabled: locale.value !== undefined,
+ enabled: locale !== undefined,
})
);
diff --git a/js/src/views/About/TermsView.vue b/js/src/views/About/TermsView.vue
index 13df6adfe..342b5f4f1 100644
--- a/js/src/views/About/TermsView.vue
+++ b/js/src/views/About/TermsView.vue
@@ -26,10 +26,10 @@ const { result: termsResult, loading: termsLoading } = useQuery<{
}>(
TERMS,
() => ({
- locale: locale.value,
+ locale: locale,
}),
() => ({
- enabled: locale.value !== undefined,
+ enabled: locale !== undefined,
})
);
diff --git a/js/src/views/Admin/AdminUserProfile.vue b/js/src/views/Admin/AdminUserProfile.vue
index 984bed069..eeb46f0a1 100644
--- a/js/src/views/Admin/AdminUserProfile.vue
+++ b/js/src/views/Admin/AdminUserProfile.vue
@@ -36,7 +36,9 @@
v-if="type === 'ip'"
class="py-4 px-2 whitespace-nowrap"
>
- {{ value }}
+ {{
+ value
+ }}
participationsResult.value?.person.participations?.elements ?? []
);
-const { person } = usePersonStatusGroup(
+const groupFederatedUsername = computed(() =>
usernameWithDomain(event.value?.attributedTo)
);
+const { person } = usePersonStatusGroup(groupFederatedUsername);
+
const { eventCategories } = useEventCategories();
// metaInfo() {
diff --git a/js/src/views/Group/GroupView.vue b/js/src/views/Group/GroupView.vue
index ece9cad82..4b2b06d2e 100644
--- a/js/src/views/Group/GroupView.vue
+++ b/js/src/views/Group/GroupView.vue
@@ -662,7 +662,11 @@ import EmptyContent from "../../components/Utils/EmptyContent.vue";
import { Paginate } from "@/types/paginate";
import { IEvent } from "@/types/event.model";
import { IPost } from "@/types/post.model";
-import { FOLLOW_GROUP, UNFOLLOW_GROUP, UPDATE_GROUP_FOLLOW } from "@/graphql/followers";
+import {
+ FOLLOW_GROUP,
+ UNFOLLOW_GROUP,
+ UPDATE_GROUP_FOLLOW,
+} from "@/graphql/followers";
import { useAnonymousReportsConfig } from "../../composition/apollo/config";
import { computed, defineAsyncComponent, inject, ref, watch } from "vue";
import { useCurrentActorClient } from "@/composition/apollo/actor";
diff --git a/js/src/views/User/RegisterView.vue b/js/src/views/User/RegisterView.vue
index 12515ae1d..1f138cdae 100644
--- a/js/src/views/User/RegisterView.vue
+++ b/js/src/views/User/RegisterView.vue
@@ -295,7 +295,7 @@ onError((error) => {
const submit = async (): Promise => {
sendingForm.value = true;
- credentials.locale = locale.value as string;
+ credentials.locale = locale as unknown as string;
try {
emailErrors.value = [];
passwordErrors.value = [];
|