feat: Inbox jump to chat button

This commit is contained in:
sevonj committed 2025-06-04 12:57:55 +03:00
1 parent b8e5d9e2eb
commit bd4755b527
1 file changed
+10 -10
+10 -10
View File
@@ -133,16 +133,16 @@
? $t('post.actions.more.markUnread')
: $t('post.actions.more.markRead')}
</Button>
{#if item.type == 'comment_reply' || item.type == 'person_mention'}
<Button
href="/comment/{item.item.comment.id}"
size="sm"
rounding="pill"
class="flex-shrink-0"
>
{$t('common.jump')}
</Button>
{/if}
<Button
href={item.type == 'comment_reply' || item.type == 'person_mention'
? `/comment/${item.item.comment.id}`
: `/inbox/messages/${item.item.private_message.creator_id}`}
size="sm"
rounding="pill"
class="flex-shrink-0"
>
{$t('common.jump')}
</Button>
</div>
</div>
{/snippet}