fix(531-5): D02 보기 전용 안내 — 지정 회사 화면에 「보기 전용 — 지점은 산림청만 고칩니다」

D 예정노선 전 흐름 확인(산림청 → D01~D04 → 업체 받기 · 연결 → B03) 중 찾은 흠 — 업체 화면 D02 안내가 지도 누름 · 📍 조작을 안내하던 것.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 03:41:51 +09:00
co-authored by Claude Opus 5.5
parent 6c486da9dc
commit 30b0d3dfb2
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -68,7 +68,8 @@ export async function renderD02PlanBase(root: HTMLElement): Promise<void> {
const table = el("div", { className: "d02-points" });
const info = el("p", { className: "d02-info" });
const card = createPanelCard(t("D02_Points_Title"), false);
card.append(el("p", { className: "d02-info", text: t("D02_Points_Hint") }), table, info);
const pointsHint = el("p", { className: "d02-info", text: t("D02_Points_Hint") });
card.append(pointsHint, table, info);
const save = createButton({
label: t("D02_Save"),
variant: "filled",
@@ -240,6 +241,11 @@ export async function renderD02PlanBase(root: HTMLElement): Promise<void> {
try {
editable = !!(await fetchSessionUser())?.is_forest_service;
save.hidden = !editable;
if (!editable) {
const mapHint = map.root.querySelector<HTMLElement>("[data-kakao-map-hint]");
pointsHint.textContent = t("D02_View_Only");
if (mapHint) mapHint.textContent = t("D02_View_Only");
}
adopt(await request<PointsView>(`/projects/${projectId}/plan/points`));
const cached = JSON.parse(sessionStorage.getItem(cacheKey(projectId)) ?? "null") as {
points?: Array<LonLat | null>;