From 4feb4e792f5e93b55b0117b98b3a519cf2881b0e Mon Sep 17 00:00:00 2001 From: hyunho Date: Wed, 25 Mar 2026 12:57:15 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=AD=20=EC=A0=84=ED=99=98=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=EA=B5=AC=EC=A1=B0=20=EB=8B=A8=EC=88=9C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/app.js | 15 ++++++++++----- frontend/public/index.html | 14 ++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/frontend/public/app.js b/frontend/public/app.js index 597543f..e533c0f 100755 --- a/frontend/public/app.js +++ b/frontend/public/app.js @@ -8,8 +8,9 @@ const logoutBtn = document.getElementById("logout-btn"); const userBadge = document.getElementById("user-badge"); const currentViewTitle = document.getElementById("current-view-title"); const navButtons = Array.from(document.querySelectorAll(".header-center [data-view]")); -const stages = Array.from(document.querySelectorAll(".main-stage[data-stage]")); const organizationFrame = document.getElementById("organization-frame"); +const organizationStage = document.getElementById("organization-stage"); +const emptyStage = document.getElementById("empty-stage"); const viewLabels = { ledger: "사업관리대장", @@ -47,11 +48,15 @@ function setActiveView(view) { button.classList.toggle("active", active); button.classList.toggle("muted", !active); }); - stages.forEach((stage) => { - stage.hidden = stage.dataset.stage !== currentView; - }); + const isOrganization = currentView === "organization"; + if (organizationStage) { + organizationStage.hidden = !isOrganization; + } + if (emptyStage) { + emptyStage.hidden = isOrganization; + } - if (currentView === "organization" && previousView !== "organization" && organizationFrame) { + if (isOrganization && previousView !== "organization" && organizationFrame) { const frameSrc = organizationFrame.dataset.src || organizationFrame.src; organizationFrame.src = frameSrc; } diff --git a/frontend/public/index.html b/frontend/public/index.html index e8f42b6..2c1b438 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -64,20 +64,14 @@
- - - -
+
+