이미 수정중이면 비밀번호 창 no
This commit is contained in:
parent
421ec4eaec
commit
613d9f4c16
@ -476,6 +476,7 @@ const editComment = (comment) => {
|
||||
targetComment.isEditTextarea = !targetComment.isEditTextarea;
|
||||
lastCommentClickedButton.value = "edit";
|
||||
} else if (isAnonymous) {
|
||||
if (targetComment.isEditTextarea) return;
|
||||
toggleCommentPassword(comment, "edit");
|
||||
} else {
|
||||
alert("수정이 불가능합니다");
|
||||
@ -586,10 +587,10 @@ const submitCommentPassword = async (comment, password) => {
|
||||
if (lastCommentClickedButton.value === "edit") {
|
||||
|
||||
if (targetComment) {
|
||||
currentPasswordCommentId.value = false;
|
||||
//여기서 input 창 닫혀야함
|
||||
targetComment.isEditTextarea = true;
|
||||
passwordCommentAlert.value = "";
|
||||
currentPasswordCommentId.value = null;
|
||||
|
||||
} else {
|
||||
alert("수정 취소를 실패했습니다.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user