Use <template #slotName> form instead of v-slot

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-12 16:42:40 +02:00
parent 9d00aff619
commit e893f3f089
15 changed files with 28 additions and 29 deletions

View File

@@ -21,7 +21,7 @@
<i18n-t
keypath="This instance, {instanceName}, hosts your profile, so remember its name."
>
<template v-slot:instanceName>
<template #instanceName>
<b>{{
t("{instanceName} ({domain})", {
domain,

View File

@@ -35,10 +35,10 @@
tag="span"
keypath="{instanceName} is an instance of {mobilizon_link}, a free software built with the community."
>
<template v-slot:instanceName>
<template #instanceName>
<b>{{ config?.name }}</b>
</template>
<template v-slot:mobilizon_link>
<template #mobilizon_link>
<a href="https://joinmobilizon.org">{{ t("Mobilizon") }}</a>
</template>
</i18n-t>

View File

@@ -7,7 +7,7 @@
tag="p"
keypath="You have been invited by {invitedBy} to the following group:"
>
<template v-slot:invitedBy>
<template #invitedBy>
<b>{{ member?.invitedBy?.name }}</b>
</template>
</i18n-t>

View File

@@ -42,7 +42,7 @@
<p class="flex gap-1" v-if="isCurrentActorMember">
<AccountEdit />
<i18n-t keypath="Published by {name}">
<template v-slot:name>
<template #name>
<b class="">{{ displayName(post.author) }}</b>
</template>
</i18n-t>