feat: update placeholder system
This commit is contained in:
1 parent
d24e94b365
commit
f2c9b5171b
5 files changed
+60
-25
No files matched your search
@@ -10,6 +10,7 @@
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import { placeholders } from '$lib/util.js'
|
||||
|
||||
export let postId: number
|
||||
export let parentId: number | undefined = undefined
|
||||
@@ -68,7 +69,9 @@
|
||||
{:else}
|
||||
<MarkdownEditor
|
||||
rows={4}
|
||||
placeholder={locked ? 'This post is locked.' : 'What are you thinking?'}
|
||||
placeholder={locked
|
||||
? 'This post is locked.'
|
||||
: placeholders.get('comment')}
|
||||
bind:value
|
||||
disabled={locked}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user