forked from Mirrors/elk
feat: make new users signup notifications link to their profile (#2406)
This commit is contained in:
parent
b723d51786
commit
f4b0be8aed
1 changed files with 10 additions and 8 deletions
|
@ -31,6 +31,7 @@ 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'">
|
||||||
|
<NuxtLink :to="getAccountRoute(notification.account)">
|
||||||
<div flex p4 items-center bg-shaded>
|
<div flex p4 items-center bg-shaded>
|
||||||
<div i-ri:user-add-line text-xl me-2 color-purple />
|
<div i-ri:user-add-line text-xl me-2 color-purple />
|
||||||
<AccountDisplayName
|
<AccountDisplayName
|
||||||
|
@ -39,6 +40,7 @@ const { notification } = defineProps<{
|
||||||
/>
|
/>
|
||||||
<span>{{ $t("notification.signed_up") }}</span>
|
<span>{{ $t("notification.signed_up") }}</span>
|
||||||
</div>
|
</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!)">
|
||||||
|
|
Loading…
Reference in a new issue