diff --git a/components/comments/PostComments.vue b/components/comments/PostComments.vue index 32e3dce..92b1dea 100644 --- a/components/comments/PostComments.vue +++ b/components/comments/PostComments.vue @@ -19,6 +19,8 @@ const replyBody = ref('') const activeReplyTargetId = ref('') const sortOption = ref('best') const brokenAvatarCommentIds = ref([]) +const canSubmitComment = computed(() => Boolean(newCommentBody.value.trim()) && !submitting.value) +const canSubmitReply = computed(() => Boolean(replyBody.value.trim()) && !submittingReplyId.value) /** * 댓글 시간을 상대 시간 형식으로 변환한다. @@ -313,15 +315,15 @@ onMounted(async () => {
- +
@@ -339,8 +341,8 @@ onMounted(async () => {
-
+