fix(tkfb): TBM 팀 구성 모달 workerTaskList DOM 누락 버그 수정

tbmModal에 편집 모드용 workerTaskListSection/workerTaskList/workerListEmpty 요소 추가.
openTeamCompositionModal에서 생성↔편집 모드 전환 로직 추가, closeTbmModal에서 원복.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-16 15:09:59 +09:00
parent 573ef74246
commit c2e8b58849
2 changed files with 33 additions and 8 deletions

View File

@@ -628,6 +628,12 @@ window.loadTasksByWorkType = loadTasksByWorkType;
function closeTbmModal() {
document.getElementById('tbmModal').style.display = 'none';
unlockBodyScroll();
// 생성 모드로 복원
const createSection = document.getElementById('newTbmWorkerGrid')?.closest('.tbm-form-section');
const editSection = document.getElementById('workerTaskListSection');
if (createSection) createSection.style.display = '';
if (editSection) editSection.style.display = 'none';
}
window.closeTbmModal = closeTbmModal;
@@ -2010,6 +2016,12 @@ async function openTeamCompositionModal(sessionId) {
document.getElementById('leaderId').value = '';
}
// 생성 모드 섹션 숨기고 편집 모드 섹션 표시
const createSection = document.getElementById('newTbmWorkerGrid')?.closest('.tbm-form-section');
const editSection = document.getElementById('workerTaskListSection');
if (createSection) createSection.style.display = 'none';
if (editSection) editSection.style.display = 'block';
renderWorkerTaskList();
document.getElementById('tbmModal').style.display = 'flex';