improve: update commentvote

This commit is contained in:
Xylight committed 2024-02-26 17:03:36 -08:00
1 parent ee9dbf1071
commit d3168c1d1d
6 files changed
+82 -120

No files matched your search

@@ -34,7 +34,8 @@
<div class="flex flex-row items-center gap-0.5 h-7 relative">
<CommentVote
bind:score={comment.counts.score}
bind:upvotes={comment.counts.upvotes}
bind:downvotes={comment.counts.downvotes}
bind:vote={comment.my_vote}
commentId={comment.comment.id}
/>
@@ -93,7 +94,7 @@
<Icon src={comment.saved ? BookmarkSlash : Bookmark} mini size="16" />
<span>{comment.saved ? 'Unsave' : 'Save'}</span>
</MenuButton>
{#if $profile?.user && $profile.jwt && isCommentMutable(comment, $profile.user.local_user_view)}
{#if $profile?.user && $profile.jwt && $profile.user.local_user_view.person.id == comment.creator.id}
<MenuButton
color="danger-subtle"
on:click={async () => {