misc: fix reply reason
This commit is contained in:
1 parent
39ef7f99fe
commit
939f7276f7
1 file changed
+6
-4
@@ -29,9 +29,11 @@
|
|||||||
: item.post.removed
|
: item.post.removed
|
||||||
: false
|
: false
|
||||||
|
|
||||||
$: replyReason = `Your submission${
|
const getReplyReason = (reason: string) => {
|
||||||
privateMessage ? `in ${item?.post.name}` : ' '
|
return `Your submission in *"${item?.post.name}"* was removed for:\n${reason}`
|
||||||
}was removed for:\n${reason}`
|
}
|
||||||
|
|
||||||
|
$: replyReason = getReplyReason(reason)
|
||||||
|
|
||||||
async function remove() {
|
async function remove() {
|
||||||
if (!item) return
|
if (!item) return
|
||||||
@@ -186,7 +188,7 @@
|
|||||||
bind:value={reason}
|
bind:value={reason}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if !removed && !purge}
|
{#if !removed}
|
||||||
<Checkbox bind:checked={commentReason}>Reply with reason</Checkbox>
|
<Checkbox bind:checked={commentReason}>Reply with reason</Checkbox>
|
||||||
|
|
||||||
{#if commentReason}
|
{#if commentReason}
|
||||||
|
|||||||
Reference in new issue
Block a user