fix: Don't show reply popup all the time

This commit is contained in:
Xyphyn committed 2023-07-22 16:41:03 -07:00
1 parent bb62fd0a9b
commit 55f5b3591a
1 file changed
+15 -13
+15 -13
View File
@@ -129,20 +129,22 @@
</div>
{/if}
{#if isPrivateMessage(item)}
<div class="mt-2 flex flex-col gap-2">
<TextArea placeholder="Message" bind:value={reply} rows={3} />
<div class="ml-auto w-24">
<Button
disabled={loading}
{loading}
on:click={() => replyToMessage(item)}
color="primary"
size="sm"
>
Submit
</Button>
{#if replying}
<div class="mt-2 flex flex-col gap-2">
<TextArea placeholder="Message" bind:value={reply} rows={3} />
<div class="ml-auto w-24">
<Button
disabled={loading}
{loading}
on:click={() => replyToMessage(item)}
color="primary"
size="sm"
>
Submit
</Button>
</div>
</div>
</div>
{/if}
{/if}
{/if}
</Card>