fix: Don't show reply popup all the time
This commit is contained in:
1 parent
bb62fd0a9b
commit
55f5b3591a
1 file changed
+15
-13
@@ -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>
|
||||
Reference in new issue
Block a user