diff --git a/B09_Estimation/B09_Estimation_UI_Tab_Progress.ts b/B09_Estimation/B09_Estimation_UI_Tab_Progress.ts index 9fc70bcb..359e6401 100644 --- a/B09_Estimation/B09_Estimation_UI_Tab_Progress.ts +++ b/B09_Estimation/B09_Estimation_UI_Tab_Progress.ts @@ -188,6 +188,19 @@ function drawPanel(ctx: B09TabContext, data: ProgressDto, reload: (round: number }, }), ); + if (draft.rounds.length) { + box.append( + createButton({ + label: `${draft.rounds.length}회 지우기(저장)`, + variant: "ghost", + onClick: () => { + // 앞 회차를 지우면 뒤 회차의 전회가 통째로 바뀜 — 마지막 회차만 지움. + draft.rounds.pop(); + void save(draft.rounds.length); + }, + }), + ); + } const current = draft.rounds[data.round - 1]; if (current) { const vat = el("label");