feat: close #106
This commit is contained in:
1 parent
d5de6bb7c6
commit
b2d0cb269c
3 files changed
+10
-44
No files matched your search
@@ -59,46 +59,12 @@
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col gap-2 relative">
|
||||
{#if preview}
|
||||
<div
|
||||
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border
|
||||
border-slate-300 dark:border-zinc-700 rounded-md overflow-auto text-sm"
|
||||
>
|
||||
<Markdown source={value} />
|
||||
</div>
|
||||
{:else}
|
||||
<MarkdownEditor
|
||||
rows={7}
|
||||
placeholder={locked
|
||||
? 'This post is locked.'
|
||||
: placeholders.get('comment')}
|
||||
bind:value
|
||||
disabled={locked || loading}
|
||||
on:confirm={submit}
|
||||
/>
|
||||
{/if}
|
||||
{#if actions || previewAction}
|
||||
<div class="flex flex-row items-center justify-between">
|
||||
{#if previewAction}
|
||||
<MultiSelect
|
||||
options={[false, true]}
|
||||
optionNames={['Edit', 'Preview']}
|
||||
bind:selected={preview}
|
||||
/>
|
||||
{/if}
|
||||
{#if actions}
|
||||
<Button
|
||||
large
|
||||
on:click={submit}
|
||||
color="primary"
|
||||
size="lg"
|
||||
class="sm:ml-auto w-28"
|
||||
{loading}
|
||||
disabled={locked || loading}
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<MarkdownEditor
|
||||
rows={7}
|
||||
placeholder={locked ? 'This post is locked.' : placeholders.get('comment')}
|
||||
bind:value
|
||||
disabled={locked || loading}
|
||||
on:confirm={submit}
|
||||
previewButton
|
||||
/>
|
||||
</div>
|
||||
Reference in new issue
Block a user