From 05a9de8d2faf6baaf396a4dd35237416b743be47 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Tue, 20 Jan 2026 08:53:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=EC=9D=84=20=EC=97=AD=ED=95=A0=EB=B3=84=20?= =?UTF-8?q?=EA=B3=B5=ED=86=B5=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C?= =?UTF-8?q?=EB=A1=9C=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 변경사항: - navbar의 대시보드 버튼이 개인 대시보드가 아닌 역할별 공통 대시보드로 이동하도록 수정 - Admin/System → /pages/dashboard/system.html - 그룹장 → /pages/dashboard/group-leader.html - 일반 사용자 → /pages/dashboard/user.html 수정된 파일: - web-ui/components/navbar.html - web-ui/js/load-navbar.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- web-ui/components/navbar.html | 2 +- web-ui/js/load-navbar.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/web-ui/components/navbar.html b/web-ui/components/navbar.html index 260061c..1f01636 100644 --- a/web-ui/components/navbar.html +++ b/web-ui/components/navbar.html @@ -20,7 +20,7 @@
- + 📊 대시보드 diff --git a/web-ui/js/load-navbar.js b/web-ui/js/load-navbar.js index d62bd47..dcc0e21 100644 --- a/web-ui/js/load-navbar.js +++ b/web-ui/js/load-navbar.js @@ -66,6 +66,20 @@ function populateUserInfo(doc, user) { const el = doc.getElementById(id); if (el) el.textContent = elements[id]; } + + // 역할별 대시보드 URL 설정 + const dashboardBtn = doc.getElementById('dashboardBtn'); + if (dashboardBtn) { + let dashboardUrl = '/pages/dashboard/user.html'; // 기본값 + + if (user.role === 'admin' || user.role === 'system') { + dashboardUrl = '/pages/dashboard/system.html'; + } else if (user.role === 'leader' || user.access_level === 'group_leader') { + dashboardUrl = '/pages/dashboard/group-leader.html'; + } + + dashboardBtn.href = dashboardUrl; + } } /**