From effe5a719674709571650e6522e1cc893a2faa77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=B3=91=EC=B2=A0?= Date: Sat, 21 Mar 2026 14:07:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[process]=20=ED=92=88=EB=AA=A9=20?= =?UTF-8?q?=EC=A0=84=EC=B2=B4=20=EC=82=AD=EC=A0=9C=20confirm()=20=E2=86=92?= =?UTF-8?q?=20DeleteConfirmDialog=20=EC=A0=84=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../process-management/ProcessDetail.tsx | 13 +++++-- .../process-management/ProcessForm.tsx | 34 +++++++++++++------ 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/src/components/process-management/ProcessDetail.tsx b/src/components/process-management/ProcessDetail.tsx index 3b91dfeb..0c4196e6 100644 --- a/src/components/process-management/ProcessDetail.tsx +++ b/src/components/process-management/ProcessDetail.tsx @@ -87,8 +87,8 @@ export function ProcessDetail({ process, onProcessUpdate }: ProcessDetailProps) }; // 품목 전체 삭제 + const [showRemoveAllDialog, setShowRemoveAllDialog] = useState(false); const handleRemoveAllItems = async () => { - if (!confirm(`등록된 품목 ${itemCount}개를 모두 삭제하시겠습니까?`)) return; const result = await removeProcessItem(process.id, []); if (result.success && result.data) { toast.success('품목이 모두 제거되었습니다.'); @@ -96,6 +96,7 @@ export function ProcessDetail({ process, onProcessUpdate }: ProcessDetailProps) } else { toast.error(result.error || '품목 전체 제거에 실패했습니다.'); } + setShowRemoveAllDialog(false); }; const [isDuplicating, setIsDuplicating] = useState(false); @@ -294,7 +295,7 @@ export function ProcessDetail({ process, onProcessUpdate }: ProcessDetailProps)