diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index c300212..b77e8ad 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -118,6 +118,22 @@ const toggleComment = () => { isComment.value = !isComment.value; }; +// 비밀번호 & 수정 모드 관련 상태 +const password = ref(''); +const passwordAlert = ref(''); +const isPassword = ref(false); +const isEditTextarea = ref(false); +const lastClickedButton = ref(""); + +const toggleEdit = (status) => { + if (props.unknown) { + isPassword.value = status; // 익명 사용자면 비밀번호 입력창 표시 + lastClickedButton.value = "edit"; + } else { + isEditTextarea.value = status; // 비밀번호가 필요 없으면 바로 수정 모드 + } +}; + // 부모 컴포넌트에 대댓글 추가 요청 const submitComment = (newComment) => { emit('submitComment', { parentId: props.comment.commentId, ...newComment }); diff --git a/src/components/button/HalfDayButtons.vue b/src/components/button/HalfDayButtons.vue index 2dc31e0..83f4c35 100644 --- a/src/components/button/HalfDayButtons.vue +++ b/src/components/button/HalfDayButtons.vue @@ -22,21 +22,21 @@ - +const addVacationRequests = () => { + emit("addVacationRequests"); +}; + + } + diff --git a/src/components/projectlist/ProjectList.vue b/src/components/projectlist/ProjectList.vue index 812fc9c..ce0be6a 100644 --- a/src/components/projectlist/ProjectList.vue +++ b/src/components/projectlist/ProjectList.vue @@ -1,163 +1,366 @@ diff --git a/src/components/user/UserList.vue b/src/components/user/UserList.vue index c5a1779..835c7ff 100644 --- a/src/components/user/UserList.vue +++ b/src/components/user/UserList.vue @@ -5,7 +5,7 @@ :key="index" class="avatar pull-up" :class="{ 'opacity-100': isUserDisabled(user) }" - @click="toggleDisable(index)" + @click.stop="toggleDisable(index)" data-bs-toggle="tooltip" data-popup="tooltip-custom" data-bs-placement="top" diff --git a/src/components/vacation/ProfileList.vue b/src/components/vacation/ProfileList.vue index 526537c..ae2d257 100644 --- a/src/components/vacation/ProfileList.vue +++ b/src/components/vacation/ProfileList.vue @@ -1,6 +1,6 @@