From 92a180ae8808d0d854a355b253d2a54fc9999f9a Mon Sep 17 00:00:00 2001 From: HotoRas Date: Sun, 8 Sep 2024 08:40:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20(frontend):=20MkPostForm:=20=EB=85=B8?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95=20=EB=AA=A8=EB=93=9C=20=EC=8B=9C?= =?UTF-8?q?=20=EB=AC=B4=EC=A1=B0=EA=B1=B4=20=ED=8F=AC=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EA=B0=80=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit props.editMode가 true인 경우 - posting.value not in (null | undefined | false) - posted.value not in (null | undefined | false) 인 상태라 별도로 해결해줘야 함 --- packages/frontend/src/components/MkPostForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index b8ddde9edfe5..06712f8fa07a 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -254,7 +254,7 @@ const maxTextLength = computed((): number => { }); const canPost = computed((): boolean => { - return !props.mock && !posting.value && !posted.value && + return ((!props.mock && !posting.value && !posted.value) || props.editMode) && ( 1 <= textLength.value || 1 <= files.value.length || @@ -872,7 +872,7 @@ async function post(ev?: MouseEvent) { } } - if (props.editMode) { + if (props.editMode) { misskeyApi('notes/update', postData, token).then(() => { if (props.freezeAfterPosted) { posted.value = true;