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>
{/if}
<slot name="content" />
<slot name="content" {readonly} />
{#if !hideFooter}
<Replies {embedded} object={message} />

View File

@ -105,7 +105,7 @@
label={getEmbeddedLabel('reviewed')}
/>
</svelte:fragment>
<svelte:fragment slot="content">
<svelte:fragment slot="content" let:readonly>
<div class="file-content">
{#if comments.length > 0}
<Component
@ -127,7 +127,11 @@
<ReviewCommentPresenter {comment} />
{/each}
</div>
{#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">
{#if githubConfiguration.ResolveThreadSupported}
<Button