feat(720-3): 단가산출 · 일위대가 나무 문서 줄 [이름 바꾸기] — 읽고 이름만 갈아 저장 · 저장 뒤 상세 머리 제목 새 이름

- 열린 문서면 저장 안 한 고침 물음 뒤 새 이름으로 다시 엶 · 서버 새 길 없음
- 새 지킴 시험 test_720_m02_folder_layer(임시 storage 이름 바꾸기 왕복 · 화면 글 대조)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 21:25:12 +09:00
co-authored by Claude Opus 5.5
parent 194e1a9c39
commit a0c2db507f
3 changed files with 112 additions and 0 deletions
@@ -595,6 +595,10 @@ export function createMain(
sheet.recalc();
panel.refresh(sheet.getDoc()?.열 ?? []);
}
// 720-3 — 서고 문서(단가산출 · 일위대가) 이름을 고쳐 저장하면 머리 제목도 새 이름(「키 이름」)
const named = (doc as { 이름?: unknown } | null)?.이름;
if ((at.kind === "sangeun" || isPrecombo(at.kind)) && typeof named === "string" && sel === at)
title.textContent = at.label = named ? `${at.name} ${named}` : at.name;
showNotice([]);
showToast(L("M02_Saved"), "success");
onSaved?.(); // 좌측 목록의 판을 새 판으로