fix(project): 세션 삭제 확인창을 브라우저 기본 confirm 대신 erpConfirm으로

기본 confirm()은 제목에 도메인이 그대로 찍히고 스타일도 못 바꾼다.
앱 공용 팝업(window.erpConfirm)으로 교체.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 14:21:43 +09:00
parent e2734e176c
commit 397ca8684a
4 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -2271,7 +2271,11 @@
}
async function deleteStage() {
if (!canDelete(s.created_by)) { alert(DELETE_DENIED); return; }
if (!confirm("'" + s.name + "' 세션을 삭제할까요? 이 세션의 업무는 '미지정'이 됩니다.")) return;
const ok = await window.erpConfirm(
"'" + s.name + "' 세션을 삭제할까요? 이 세션의 업무는 '미지정'이 됩니다.",
{ okText: "삭제", cancelText: "취소" }
);
if (!ok) return;
try {
await api("DELETE", "/project/api/projects/" + projectId + "/stages/" + s.id);
await reloadStagesForCurrentProject();