.
This commit is contained in:
parent
d1c91b30df
commit
2cc280717d
@ -461,6 +461,7 @@ const editComment = (comment) => {
|
|||||||
|
|
||||||
if (isMyComment) {
|
if (isMyComment) {
|
||||||
targetComment.isEditTextarea = !targetComment.isEditTextarea;
|
targetComment.isEditTextarea = !targetComment.isEditTextarea;
|
||||||
|
lastCommentClickedButton.value = "edit";
|
||||||
} else if (isAnonymous) {
|
} else if (isAnonymous) {
|
||||||
toggleCommentPassword(comment, "edit");
|
toggleCommentPassword(comment, "edit");
|
||||||
} else {
|
} else {
|
||||||
@ -616,6 +617,7 @@ const deletePost = async () => {
|
|||||||
|
|
||||||
// 댓글 삭제 (대댓글 포함)
|
// 댓글 삭제 (대댓글 포함)
|
||||||
const deleteReplyComment = async (comment) => {
|
const deleteReplyComment = async (comment) => {
|
||||||
|
console.log('지금 여기')
|
||||||
if (!confirm("정말 이 댓글을 삭제하시겠습니까?")) return;
|
if (!confirm("정말 이 댓글을 삭제하시겠습니까?")) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -635,6 +637,7 @@ const deleteReplyComment = async (comment) => {
|
|||||||
|
|
||||||
// 댓글 수정 확인
|
// 댓글 수정 확인
|
||||||
const handleSubmitEdit = async (comment, editedContent) => {
|
const handleSubmitEdit = async (comment, editedContent) => {
|
||||||
|
console.log('asdasdasdasd')
|
||||||
try {
|
try {
|
||||||
const response = await axios.put(`board/comment/${comment.commentId}`, {
|
const response = await axios.put(`board/comment/${comment.commentId}`, {
|
||||||
LOCCMTSEQ: comment.commentId,
|
LOCCMTSEQ: comment.commentId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user