feat: 로고 클릭 시 업무 현황 대시보드로 이동
- 관리자 레이아웃 로고 링크 admin → / (업무 현황) - 워크스페이스 내 로고 클릭은 전체 새로고침 대신 1분할로 전환 후 업무 현황 탭 열기/포커스 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -102,7 +102,7 @@ tailwind.config = {
|
||||
<body class="gov-portal-shell select-none">
|
||||
<header class="portal-header">
|
||||
<div class="portal-header-inner">
|
||||
<?= view('home/_dashboard_gov_portal_brand', ['brandHref' => base_url('admin')]) ?>
|
||||
<?= view('home/_dashboard_gov_portal_brand', ['brandHref' => base_url('/')]) ?>
|
||||
<?= view('home/_dashboard_gov_portal_topnav_click', $navPartial) ?>
|
||||
<div class="portal-header-utils" style="display:flex;align-items:center;gap:.5rem;">
|
||||
<span class="user-line">
|
||||
|
||||
@@ -374,6 +374,14 @@ if ($effectiveLgIdx) {
|
||||
var closeAllBtn = document.getElementById('wsCloseAll');
|
||||
if (closeAllBtn) closeAllBtn.addEventListener('click', closeAllTabs);
|
||||
|
||||
// 로고 클릭 → 전체 새로고침 대신 "업무 현황" 탭을 열고(1분할) 포커스
|
||||
var brandLink = document.querySelector('.gov-portal-brand');
|
||||
if (brandLink) brandLink.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
if (layout !== 'single') setLayout('single');
|
||||
openTab(DASH_URL, '업무 현황');
|
||||
});
|
||||
|
||||
function reloadTab(id) {
|
||||
var t = tabs[id];
|
||||
if (!t) return;
|
||||
|
||||
Reference in New Issue
Block a user