fix(531-5): D02 보기 전용 안내 — 지정 회사 화면에 「보기 전용 — 지점은 산림청만 고칩니다」
D 예정노선 전 흐름 확인(산림청 → D01~D04 → 업체 받기 · 연결 → B03) 중 찾은 흠 — 업체 화면 D02 안내가 지도 누름 · 📍 조작을 안내하던 것. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -129,6 +129,10 @@ export const ui_locales_de = {
|
||||
D02_Lat: ["위도", "Lat"],
|
||||
D02_Pick_Point: ["지도에 놓을 지점 고르기", "Pick the point to place on the map"],
|
||||
D02_Map_Hint: ["지도를 눌러 지점을 놓습니다.", "Click the map to place a point."],
|
||||
D02_View_Only: [
|
||||
"보기 전용 — 지점은 산림청만 고칩니다.",
|
||||
"View only — only the Forest Service edits points.",
|
||||
],
|
||||
D02_Save: ["저장", "Save"],
|
||||
D02_Saved: ["지점을 저장했습니다.", "Points saved."],
|
||||
D02_Saved_Crs: ["저장 좌표계", "Saved CRS"],
|
||||
|
||||
Reference in New Issue
Block a user