작업 보고서
@@ -593,7 +593,18 @@
// 선택된 섹션 표시
document.getElementById(section + 'Section').classList.remove('hidden');
- // 네비게이션 활성화는 공통 헤더에서 처리됨
+ // 공통 헤더 현재 페이지 업데이트
+ if (window.commonHeader && currentUser) {
+ let pageName = 'issues_create'; // 기본값
+ if (section === 'list') {
+ pageName = 'issues_manage';
+ } else if (section === 'summary') {
+ pageName = 'reports';
+ } else if (section === 'report') {
+ pageName = 'issues_create';
+ }
+ window.commonHeader.updateCurrentPage(pageName);
+ }
// 부적합 등록 섹션으로 전환 시 프로젝트 다시 로드 (모바일 대응)
if (section === 'report') {
diff --git a/frontend/static/js/components/common-header.js b/frontend/static/js/components/common-header.js
index 2ce841a..4c7f061 100644
--- a/frontend/static/js/components/common-header.js
+++ b/frontend/static/js/components/common-header.js
@@ -140,6 +140,15 @@ class CommonHeader {
}
}
+ /**
+ * 현재 페이지 업데이트
+ * @param {string} pageName - 새로운 페이지 이름
+ */
+ updateCurrentPage(pageName) {
+ this.currentPage = pageName;
+ this.render();
+ }
+
/**
* 헤더 HTML 생성
*/