feat: add moderation tools (#33)
* feat: Add post submission removal * feat: add comment submission removal * feat: add report viewing and resolving * misc: add notification dot * misc: add locked thread badge * feat: add thread locking * feat: add initiating message conversations * feat: add post pinning/unpinning * misc: bump version * fix: tweak lock colors * fix: update post data on pin * fix: return if reason is empty
This commit is contained in:
1 parent
53ef843cde
commit
d3aae647a8
29 files changed
+835
-67
No files matched your search
@@ -9,6 +9,7 @@
|
||||
|
||||
export let postId: number
|
||||
export let parentId: number | undefined = undefined
|
||||
export let locked: boolean = false
|
||||
|
||||
const dispatch = createEventDispatcher<{ comment: CommentResponse }>()
|
||||
|
||||
@@ -51,9 +52,10 @@
|
||||
<div class="flex flex-col gap-2 relative">
|
||||
<TextArea
|
||||
rows={4}
|
||||
placeholder="What are you thinking?"
|
||||
placeholder={locked ? 'This post is locked.' : 'What are you thinking?'}
|
||||
class="!bg-slate-100 dark:!bg-zinc-900"
|
||||
bind:value={newComment}
|
||||
disabled={locked}
|
||||
/>
|
||||
<div class="sm:ml-auto sm:w-28">
|
||||
<Button
|
||||
@@ -63,6 +65,7 @@
|
||||
size="lg"
|
||||
class="w-full"
|
||||
{loading}
|
||||
disabled={locked || loading}
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user