Skip to content

Commit

Permalink
Fix (frontend): MkPostForm: 노트 수정 모드 시 무조건 포스트가 가능하도록
Browse files Browse the repository at this point in the history
props.editMode가 true인 경우
- posting.value not in (null | undefined | false)
- posted.value not in (null | undefined | false)
인 상태라 별도로 해결해줘야 함
  • Loading branch information
HotoRas committed Sep 7, 2024
1 parent 0e9a08e commit 92a180a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 92a180a

Please sign in to comment.