diff --git a/M01_MasterData/M01_MasterData_UI_Page.ts b/M01_MasterData/M01_MasterData_UI_Page.ts index 69f178ac..2e7af22e 100644 --- a/M01_MasterData/M01_MasterData_UI_Page.ts +++ b/M01_MasterData/M01_MasterData_UI_Page.ts @@ -207,6 +207,24 @@ function buildPage(groups: GroupInfo[]): HTMLElement { tabs.append(tab); } + const logicTab = el("button", { + className: "m01-master__tab", + attrs: { type: "button" }, + text: L("M01_LogicTab"), + }); + logicTab.addEventListener("click", () => { + tabs.querySelector(".is-active")?.classList.remove("is-active"); + logicTab.classList.add("is-active"); + group = ""; + current = null; + dispose(); + files.replaceChildren(); + body.replaceChildren(); + title.textContent = L("M01_LogicTab"); + void import("./M01_MasterData_UI_Logic_Page").then((m) => m.mountM01Logic(body)); + }); + tabs.append(logicTab); + const layout = el("div", { className: "ui-workflow-layout m01-master" }); const main = el("main", { className: "ui-workflow-layout__main", diff --git a/ui_template/ui_template_locale_m1.ts b/ui_template/ui_template_locale_m1.ts index 1429d66d..d19b5f78 100644 --- a/ui_template/ui_template_locale_m1.ts +++ b/ui_template/ui_template_locale_m1.ts @@ -5,6 +5,7 @@ export const ui_locales_m1 = { B01_Dashboard_MasterElements: ["마스터 요소", "Master Elements"], + M01_LogicTab: ["로직", "Logic"], M01_Title: ["마스터 요소", "Master Elements"], M01_AdminOnly: ["시스템 관리자만 볼 수 있음", "System administrators only"], M01_LoadFailed: ["마스터 요소를 못 읽음", "Failed to load master elements"],