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> </div>
{/if} {/if}
{#if isPrivateMessage(item)} {#if isPrivateMessage(item)}
<div class="mt-2 flex flex-col gap-2"> {#if replying}
<TextArea placeholder="Message" bind:value={reply} rows={3} /> <div class="mt-2 flex flex-col gap-2">
<div class="ml-auto w-24"> <TextArea placeholder="Message" bind:value={reply} rows={3} />
<Button <div class="ml-auto w-24">
disabled={loading} <Button
{loading} disabled={loading}
on:click={() => replyToMessage(item)} {loading}
color="primary" on:click={() => replyToMessage(item)}
size="sm" color="primary"
> size="sm"
Submit >
</Button> Submit
</Button>
</div>
</div> </div>
</div> {/if}
{/if} {/if}
{/if} {/if}
</Card> </Card>