fix(720-4): 도면 양식 칸 = 누구나 늘 보임(읽기 · 고르기) · 새로 · 본떠 · 지우기 단추만 시스템 관리자 · 실무문서 그대로

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 21:59:18 +09:00
co-authored by Claude Sonnet 5.5
parent 2fb57be255
commit 23d8e2d7a2
2 changed files with 10 additions and 8 deletions
@@ -161,10 +161,8 @@ export function buildSide(opt: SideOptions): SideHandle {
? void Promise.all([precombo.refresh(), sangeun.refresh()])
: document.removeEventListener(HOPYO_BUILT, onBuilt);
document.addEventListener(HOPYO_BUILT, onBuilt);
// 도면 양식은 시스템 층(마스터 템플릿)에만 — 시스템 관리자면 늘(720-4)
const drawing = opt.isSystem
? section(L("M02_KindDrawing"), bodies.get("drawing")!, ...actionRow("drawing"))
: null;
// 도면 양식 칸 = 누구나 늘(읽기 · 고르기) · 새로 · 본떠 · 지우기 단추만 시스템 관리자
const drawing = section(L("M02_KindDrawing"), bodies.get("drawing")!, ...actionRow("drawing"));
// 실무문서(옛 마스터 일위대가 조합 · PLAN 39-2) — 구조물 조합 밖 · 도면 양식 아래 · 시스템 관리자만
const practice = opt.isSystem
? buildPracticeSection({
@@ -188,7 +186,7 @@ export function buildSide(opt: SideOptions): SideHandle {
summary,
createDivider(),
section(hopyo.title, hopyo.body),
...(drawing ? [drawing] : []),
drawing,
...(practice ? [section(practice.title, practice.body)] : []),
],
});
@@ -259,7 +257,7 @@ export function buildSide(opt: SideOptions): SideHandle {
const mine = ++seq;
paintButtons();
try {
items = opt.isSystem ? await listTemplates(layer, null) : []; // 도면 양식 목록 — 시스템 관리자만
items = await listTemplates(layer, null); // 도면 양식 목록 — 누구나
} catch (error) {
items = [];
showToast(L("M02_LoadFailed").replace("{value}", why(error)), "error");