misc: add ban message when you try to comment

This commit is contained in:
Xylight committed 2024-07-11 16:09:42 -07:00
1 parent 72a0aa799e
commit 70bebaa3bc
5 files changed
+12 -4

No files matched your search

@@ -31,6 +31,7 @@
export let comment: CommentView
export let replying: boolean = false
export let disabled = false
const dispatcher = createEventDispatcher<{ edit: CommentView }>()
@@ -54,7 +55,7 @@
color="tertiary"
class="text-slate-600 dark:text-zinc-400"
on:click={() => (replying = !replying)}
disabled={comment.post.locked}
disabled={comment.post.locked || disabled}
>
<Icon src={ArrowUturnLeft} width={14} height={14} mini />
<span class="text-xs">{$t('comment.reply')}</span>