save draft early when doing "delete&edit" - fixes #638

when the posting form gets shown, the original note is already gone,
and without this change, the note only exists in local variables

now, we save the draft as soon as the form is shown, so clicking on
the "post" (or reply, or quote) button will get you a form with the
draft data
This commit is contained in:
dakkar 2025-05-01 13:49:12 +01:00
parent 121f555fca
commit 07ff6a890b

View file

@ -1221,6 +1221,7 @@ onMounted(() => {
scheduledAt: new Date(init.createdAt).getTime(),
};
}
saveDraft();
}
nextTick(() => watchForDraft());