mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Make github comment thread readonly (#6830)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
f929acfe29
commit
b0ec9759b3
@ -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} />
|
||||||
|
@ -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>
|
||||||
|
{#if !readonly}
|
||||||
|
<div class="ml-4 mr-4">
|
||||||
<ReferenceInput showSend={true} showHeader showActions on:message={onMessage} />
|
<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
|
||||||
|
Loading…
Reference in New Issue
Block a user