수정버튼 클래스 수정
This commit is contained in:
parent
3be8560654
commit
135e16e709
@ -482,10 +482,10 @@
|
|||||||
const isUnknown = unknown?.unknown ?? false;
|
const isUnknown = unknown?.unknown ?? false;
|
||||||
|
|
||||||
if (isUnknown) {
|
if (isUnknown) {
|
||||||
togglePassword('edit');
|
|
||||||
closeAllEditTextareas();
|
closeAllEditTextareas();
|
||||||
closeAllPasswordAreas();
|
closeAllPasswordAreas();
|
||||||
activeCommentBtnClass();
|
activeCommentBtnClass();
|
||||||
|
togglePassword('edit');
|
||||||
} else {
|
} else {
|
||||||
router.push({ name: 'BoardEdit', params: { id: currentBoardId.value } });
|
router.push({ name: 'BoardEdit', params: { id: currentBoardId.value } });
|
||||||
}
|
}
|
||||||
@ -653,11 +653,9 @@
|
|||||||
if (lastClickedButton.value === button) {
|
if (lastClickedButton.value === button) {
|
||||||
isPassword.value = !isPassword.value;
|
isPassword.value = !isPassword.value;
|
||||||
boardPasswordAlert.value = '';
|
boardPasswordAlert.value = '';
|
||||||
lastClickedButton.value = '';
|
|
||||||
acitveButtonType();
|
acitveButtonType();
|
||||||
} else {
|
} else {
|
||||||
isPassword.value = true;
|
isPassword.value = true;
|
||||||
lastClickedButton.value = button;
|
|
||||||
|
|
||||||
if (button == 'edit') {
|
if (button == 'edit') {
|
||||||
acitveButtonType(1);
|
acitveButtonType(1);
|
||||||
@ -671,23 +669,23 @@
|
|||||||
|
|
||||||
// 선택한 게시글 버튼 핸들링(수정, 삭제 버튼)
|
// 선택한 게시글 버튼 핸들링(수정, 삭제 버튼)
|
||||||
const acitveButtonType = type => {
|
const acitveButtonType = type => {
|
||||||
//closeAllEditTextareas(); //다른 모든 텍스트 에디터 비활성화
|
|
||||||
//inActiveCommentButtonClass(); // 댓글 버튼 비활성화
|
|
||||||
|
|
||||||
// 수정
|
// 수정
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
isEditPushed.value = true;
|
isEditPushed.value = true;
|
||||||
isDeletePushed.value = false;
|
isDeletePushed.value = false;
|
||||||
|
lastClickedButton.value = 'edit';
|
||||||
|
|
||||||
// 삭제
|
// 삭제
|
||||||
} else if (type == 2) {
|
} else if (type == 2) {
|
||||||
isEditPushed.value = false;
|
isEditPushed.value = false;
|
||||||
isDeletePushed.value = true;
|
isDeletePushed.value = true;
|
||||||
|
lastClickedButton.value = 'delete';
|
||||||
|
|
||||||
// 비활성화
|
// 비활성화
|
||||||
} else {
|
} else {
|
||||||
isEditPushed.value = false;
|
isEditPushed.value = false;
|
||||||
isDeletePushed.value = false;
|
isDeletePushed.value = false;
|
||||||
|
lastClickedButton.value = '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user