mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
Move reviews above discussion
This commit is contained in:
committed by
Sebastian Martinez
parent
42ab1462ea
commit
f58eb32e1c
@@ -361,47 +361,6 @@
|
||||
</CommentComponent>
|
||||
</div>
|
||||
|
||||
<div style:margin="1rem 0">
|
||||
<div class="global-flex" style:margin-bottom="1rem">
|
||||
<NakedButton
|
||||
stylePadding="0 4px"
|
||||
variant="ghost"
|
||||
onclick={() => (hideDiscussion = !hideDiscussion)}>
|
||||
<Icon name={hideDiscussion ? "chevron-right" : "chevron-down"} />
|
||||
<div class="txt-semibold global-flex txt-regular">Discussion</div>
|
||||
</NakedButton>
|
||||
</div>
|
||||
<div class:hide={hideDiscussion}>
|
||||
{#each threads as thread}
|
||||
<ThreadComponent
|
||||
{thread}
|
||||
{rid}
|
||||
canEditComment={partial(
|
||||
roles.isDelegateOrAuthor,
|
||||
config.publicKey,
|
||||
repoDelegates.map(delegate => delegate.did),
|
||||
)}
|
||||
editComment={partial(editComment)}
|
||||
createReply={partial(createReply)}
|
||||
reactOnComment={partial(reactOnComment, config.publicKey)} />
|
||||
<div class="connector"></div>
|
||||
{/each}
|
||||
|
||||
<div id={`reply-${patchId}`}>
|
||||
<CommentToggleInput
|
||||
disallowEmptyBody
|
||||
{rid}
|
||||
focus={focusReply}
|
||||
onexpand={toggleReply}
|
||||
onclose={topLevelReplyOpen
|
||||
? () => (topLevelReplyOpen = false)
|
||||
: undefined}
|
||||
placeholder="Leave a comment"
|
||||
submit={partial(createComment)} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style:margin="1rem 0">
|
||||
<div class="review-row">
|
||||
<div
|
||||
@@ -454,6 +413,47 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div style:margin="1rem 0">
|
||||
<div class="global-flex" style:margin-bottom="1rem">
|
||||
<NakedButton
|
||||
stylePadding="0 4px"
|
||||
variant="ghost"
|
||||
onclick={() => (hideDiscussion = !hideDiscussion)}>
|
||||
<Icon name={hideDiscussion ? "chevron-right" : "chevron-down"} />
|
||||
<div class="txt-semibold global-flex txt-regular">Discussion</div>
|
||||
</NakedButton>
|
||||
</div>
|
||||
<div class:hide={hideDiscussion}>
|
||||
{#each threads as thread}
|
||||
<ThreadComponent
|
||||
{thread}
|
||||
{rid}
|
||||
canEditComment={partial(
|
||||
roles.isDelegateOrAuthor,
|
||||
config.publicKey,
|
||||
repoDelegates.map(delegate => delegate.did),
|
||||
)}
|
||||
editComment={partial(editComment)}
|
||||
createReply={partial(createReply)}
|
||||
reactOnComment={partial(reactOnComment, config.publicKey)} />
|
||||
<div class="connector"></div>
|
||||
{/each}
|
||||
|
||||
<div id={`reply-${patchId}`}>
|
||||
<CommentToggleInput
|
||||
disallowEmptyBody
|
||||
{rid}
|
||||
focus={focusReply}
|
||||
onexpand={toggleReply}
|
||||
onclose={topLevelReplyOpen
|
||||
? () => (topLevelReplyOpen = false)
|
||||
: undefined}
|
||||
placeholder="Leave a comment"
|
||||
submit={partial(createComment)} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="txt-semibold global-flex"
|
||||
style:margin-bottom={hideChanges ? undefined : "1rem"}>
|
||||
|
||||
Reference in New Issue
Block a user