fix: check login in zen mode (#2258)

pull/2257/head
Sma11X 2023-08-02 18:27:31 +08:00 zatwierdzone przez GitHub
rodzic 9ae0d9b744
commit 603e10b6ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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)