fix(front): make recipient field placeholder translatable

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-12-04 11:03:34 +01:00
parent 24d92f60f7
commit 10ce812660
3 changed files with 10 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
:allow-new="false"
:open-on-focus="false"
field="displayName"
placeholder="Add a recipient"
:placeholder="t('Add a recipient')"
@typing="getActors"
>
<template #default="props">
@@ -23,6 +23,7 @@ import { Paginate } from "@/types/paginate";
import { useLazyQuery } from "@vue/apollo-composable";
import { computed, ref } from "vue";
import ActorInline from "./ActorInline.vue";
import { useI18n } from "vue-i18n";
const props = defineProps<{
modelValue: IActor[];
@@ -41,6 +42,8 @@ const modelValueWithDisplayName = computed(() =>
}))
);
const { t } = useI18n({ useScope: "global" });
const {
load: loadSearchPersonsAndGroupsQuery,
refetch: refetchSearchPersonsAndGroupsQuery,