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
|
||||
: false
|
||||
|
||||
$: replyReason = `Your submission${
|
||||
privateMessage ? `in ${item?.post.name}` : ' '
|
||||
}was removed for:\n${reason}`
|
||||
const getReplyReason = (reason: string) => {
|
||||
return `Your submission in *"${item?.post.name}"* was removed for:\n${reason}`
|
||||
}
|
||||
|
||||
$: replyReason = getReplyReason(reason)
|
||||
|
||||
async function remove() {
|
||||
if (!item) return
|
||||
@@ -186,7 +188,7 @@
|
||||
bind:value={reason}
|
||||
/>
|
||||
|
||||
{#if !removed && !purge}
|
||||
{#if !removed}
|
||||
<Checkbox bind:checked={commentReason}>Reply with reason</Checkbox>
|
||||
|
||||
{#if commentReason}
|
||||
|
||||
Reference in new issue
Block a user