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
@@ -45,5 +45,5 @@
{% endif %}
</div>
<script src="/static/project.js?v=20260917v" defer></script>
<script src="/static/project.js?v=20260917w" defer></script>
{% endblock %}
@@ -424,5 +424,5 @@
window.PJ_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772"] | tojson }};
window.PJ_STAGE_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772","#e8398a","#a15c43"] | tojson }};
</script>
<script src="/static/project.js?v=20260917v" defer></script>
<script src="/static/project.js?v=20260917w" defer></script>
{% endblock %}
@@ -538,5 +538,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260917v" defer></script>
<script src="/static/project.js?v=20260917w" defer></script>
{% endblock %}
+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();