이미 수정중이면 비밀번호 창 no

This commit is contained in:
kimdaae328 2025-02-28 13:17:12 +09:00
parent 421ec4eaec
commit 613d9f4c16

View File

@ -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("수정 취소를 실패했습니다.");