댓글 버튼 active 관련 수정
This commit is contained in:
parent
1f9f9bd1ff
commit
ee3027b3e1
@ -451,6 +451,7 @@
|
|||||||
passwordAlert.value = '';
|
passwordAlert.value = '';
|
||||||
commentAlert.value = '';
|
commentAlert.value = '';
|
||||||
await fetchComments();
|
await fetchComments();
|
||||||
|
activeCommentBtnClass();
|
||||||
} else {
|
} else {
|
||||||
alert('댓글 작성을 실패했습니다.');
|
alert('댓글 작성을 실패했습니다.');
|
||||||
}
|
}
|
||||||
@ -496,6 +497,9 @@
|
|||||||
const isUnknown = unknown?.unknown ?? false;
|
const isUnknown = unknown?.unknown ?? false;
|
||||||
|
|
||||||
if (isUnknown) {
|
if (isUnknown) {
|
||||||
|
closeAllEditTextareas();
|
||||||
|
closeAllPasswordAreas();
|
||||||
|
activeCommentBtnClass();
|
||||||
togglePassword('delete');
|
togglePassword('delete');
|
||||||
} else {
|
} else {
|
||||||
deletePost();
|
deletePost();
|
||||||
@ -581,6 +585,8 @@
|
|||||||
|
|
||||||
// 댓글 삭제 버튼 클릭
|
// 댓글 삭제 버튼 클릭
|
||||||
const deleteComment = async comment => {
|
const deleteComment = async comment => {
|
||||||
|
acitveButtonType(); //게시글 버튼 클릭 클래스 제거
|
||||||
|
closeAllEditTextareas();
|
||||||
const isMyComment = comment.authorId === currentUserId.value;
|
const isMyComment = comment.authorId === currentUserId.value;
|
||||||
|
|
||||||
// 익명인 경우
|
// 익명인 경우
|
||||||
@ -686,6 +692,7 @@
|
|||||||
isEditPushed.value = false;
|
isEditPushed.value = false;
|
||||||
isDeletePushed.value = false;
|
isDeletePushed.value = false;
|
||||||
lastClickedButton.value = '';
|
lastClickedButton.value = '';
|
||||||
|
isPassword.value = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user