Make github comment thread readonly (#6830)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-10-07 17:41:28 +04:00 committed by GitHub
parent f929acfe29
commit b0ec9759b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -244,7 +244,7 @@
</div> </div>
{/if} {/if}
<slot name="content" /> <slot name="content" {readonly} />
{#if !hideFooter} {#if !hideFooter}
<Replies {embedded} object={message} /> <Replies {embedded} object={message} />

View File

@ -105,7 +105,7 @@
label={getEmbeddedLabel('reviewed')} label={getEmbeddedLabel('reviewed')}
/> />
</svelte:fragment> </svelte:fragment>
<svelte:fragment slot="content"> <svelte:fragment slot="content" let:readonly>
<div class="file-content"> <div class="file-content">
{#if comments.length > 0} {#if comments.length > 0}
<Component <Component
@ -127,7 +127,11 @@
<ReviewCommentPresenter {comment} /> <ReviewCommentPresenter {comment} />
{/each} {/each}
</div> </div>
<ReferenceInput showSend={true} showHeader showActions on:message={onMessage} /> {#if !readonly}
<div class="ml-4 mr-4">
<ReferenceInput showSend={true} showHeader showActions on:message={onMessage} />
</div>
{/if}
<div class="p-2 flex-row-center flex-grow"> <div class="p-2 flex-row-center flex-grow">
{#if githubConfiguration.ResolveThreadSupported} {#if githubConfiguration.ResolveThreadSupported}
<Button <Button