fix(M01): 저장 · 캐시 삭제 단추 — 저장 안 한 고친 것이 없으면 숨김(단가산출 로직 · 마스터 요소)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAxqrz1iadqdygC6bE3pic
This commit is contained in:
@@ -167,6 +167,7 @@ export async function mountM01LogicLab(
|
|||||||
const n = Object.keys(drafts).length;
|
const n = Object.keys(drafts).length;
|
||||||
pending.textContent = n ? tx("Bar_Pending", { n }) : "";
|
pending.textContent = n ? tx("Bar_Pending", { n }) : "";
|
||||||
saveButton.disabled = discardButton.disabled = n === 0;
|
saveButton.disabled = discardButton.disabled = n === 0;
|
||||||
|
saveButton.hidden = discardButton.hidden = n === 0; // 저장 안 한 고친 것이 없으면 숨김
|
||||||
};
|
};
|
||||||
|
|
||||||
const touch = (): void => {
|
const touch = (): void => {
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ function buildPage(): HTMLElement {
|
|||||||
const n = totalCount();
|
const n = totalCount();
|
||||||
summary.textContent = n ? L("M01_Changed").replace("{value}", String(n)) : "";
|
summary.textContent = n ? L("M01_Changed").replace("{value}", String(n)) : "";
|
||||||
save.disabled = drop.disabled = n === 0;
|
save.disabled = drop.disabled = n === 0;
|
||||||
|
save.hidden = drop.hidden = n === 0; // 저장 안 한 고친 것이 없으면 숨김
|
||||||
};
|
};
|
||||||
onDraftChange(refreshBar);
|
onDraftChange(refreshBar);
|
||||||
refreshBar();
|
refreshBar();
|
||||||
|
|||||||
Reference in New Issue
Block a user