댓글 버튼 active 관련 수정

This commit is contained in:
nevermoregb 2025-04-07 15:43:23 +09:00
parent 1f9f9bd1ff
commit ee3027b3e1

View File

@ -451,6 +451,7 @@
passwordAlert.value = '';
commentAlert.value = '';
await fetchComments();
activeCommentBtnClass();
} else {
alert('댓글 작성을 실패했습니다.');
}
@ -496,6 +497,9 @@
const isUnknown = unknown?.unknown ?? false;
if (isUnknown) {
closeAllEditTextareas();
closeAllPasswordAreas();
activeCommentBtnClass();
togglePassword('delete');
} else {
deletePost();
@ -581,6 +585,8 @@
//
const deleteComment = async comment => {
acitveButtonType(); //
closeAllEditTextareas();
const isMyComment = comment.authorId === currentUserId.value;
//
@ -686,6 +692,7 @@
isEditPushed.value = false;
isDeletePushed.value = false;
lastClickedButton.value = '';
isPassword.value = false;
}
};