misc: use bindings to show updated data easily
This commit is contained in:
1 parent
4646a59ddf
commit
dca0edf0b1
8 files changed
+63
-58
No files matched your search
@@ -153,7 +153,7 @@
|
||||
{#if actions}
|
||||
<div class="flex flex-row gap-2 items-center">
|
||||
<CommentActions
|
||||
comment={node.comment_view}
|
||||
bind:comment={node.comment_view}
|
||||
bind:replying
|
||||
on:edit={() => (editing = true)}
|
||||
/>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<span class="text-xs">Reply</span>
|
||||
</Button>
|
||||
{#if $profile?.user && (amMod($profile?.user, comment.community) || isAdmin($profile.user))}
|
||||
<CommentModerationMenu item={comment} />
|
||||
<CommentModerationMenu bind:item={comment} />
|
||||
{/if}
|
||||
<Menu
|
||||
let:toggleOpen
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
op={post.creator_id == node.comment_view.creator.id}
|
||||
>
|
||||
{#if node.children?.length > 0}
|
||||
<svelte:self {post} nodes={node.children} isParent={false} />
|
||||
<svelte:self {post} bind:nodes={node.children} isParent={false} />
|
||||
{/if}
|
||||
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user