From 07ff6a890bd60745f5ac1d0c0a812eb3f0f889ed Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 1 May 2025 13:49:12 +0100 Subject: [PATCH] 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 --- packages/frontend/src/components/MkPostForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index c530effe4a..8a0bbe348a 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -1221,6 +1221,7 @@ onMounted(() => { scheduledAt: new Date(init.createdAt).getTime(), }; } + saveDraft(); } nextTick(() => watchForDraft());