Skip to content

Commit

Permalink
feat: make new users signup notifications link to their profile (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Sep 20, 2023
1 parent b723d51 commit f4b0be8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/notification/NotificationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ const { notification } = defineProps<{
</NuxtLink>
</template>
<template v-else-if="notification.type === 'admin.sign_up'">
<div flex p4 items-center bg-shaded>
<div i-ri:user-add-line text-xl me-2 color-purple />
<AccountDisplayName
:account="notification.account"
text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all
/>
<span>{{ $t("notification.signed_up") }}</span>
</div>
<NuxtLink :to="getAccountRoute(notification.account)">
<div flex p4 items-center bg-shaded>
<div i-ri:user-add-line text-xl me-2 color-purple />
<AccountDisplayName
:account="notification.account"
text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all
/>
<span>{{ $t("notification.signed_up") }}</span>
</div>
</NuxtLink>
</template>
<template v-else-if="notification.type === 'admin.report'">
<NuxtLink :to="getReportRoute(notification.report?.id!)">
Expand Down

0 comments on commit f4b0be8

Please sign in to comment.