댓글 버튼 active 관련 수정
This commit is contained in:
parent
1f9f9bd1ff
commit
ee3027b3e1
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user