feat: make new users signup notifications link to their profile (#2406)

This commit is contained in:
Sebastian Di Luzio 2023-09-20 08:52:05 +02:00 committed by GitHub
parent b723d51786
commit f4b0be8aed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,14 +31,16 @@ const { notification } = defineProps<{
</NuxtLink> </NuxtLink>
</template> </template>
<template v-else-if="notification.type === 'admin.sign_up'"> <template v-else-if="notification.type === 'admin.sign_up'">
<div flex p4 items-center bg-shaded> <NuxtLink :to="getAccountRoute(notification.account)">
<div i-ri:user-add-line text-xl me-2 color-purple /> <div flex p4 items-center bg-shaded>
<AccountDisplayName <div i-ri:user-add-line text-xl me-2 color-purple />
:account="notification.account" <AccountDisplayName
text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all :account="notification.account"
/> text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all
<span>{{ $t("notification.signed_up") }}</span> />
</div> <span>{{ $t("notification.signed_up") }}</span>
</div>
</NuxtLink>
</template> </template>
<template v-else-if="notification.type === 'admin.report'"> <template v-else-if="notification.type === 'admin.report'">
<NuxtLink :to="getReportRoute(notification.report?.id!)"> <NuxtLink :to="getReportRoute(notification.report?.id!)">