mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 01:15:25 +03:00
fix: check login in zen mode (#2258)
This commit is contained in:
parent
9ae0d9b744
commit
603e10b6ca
1 changed files with 5 additions and 1 deletions
|
@ -12,6 +12,8 @@ const emit = defineEmits<{
|
|||
(event: 'afterEdit'): void
|
||||
}>()
|
||||
|
||||
const focusEditor = inject<typeof noop>('focus-editor', noop)
|
||||
|
||||
const { details, command } = $(props)
|
||||
|
||||
const {
|
||||
|
@ -97,8 +99,10 @@ async function deleteAndRedraft() {
|
|||
}
|
||||
|
||||
function reply() {
|
||||
if (!checkLogin())
|
||||
return
|
||||
if (details) {
|
||||
// TODO focus to editor
|
||||
focusEditor()
|
||||
}
|
||||
else {
|
||||
const { key, draft } = getReplyDraft(status)
|
||||
|
|
Loading…
Reference in a new issue