Allow deleting open goals from the goals tab.

The delete API already supported any goal; the UI only showed the button for completed ones.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-05 10:28:15 +02:00
co-authored by Cursor
parent 662d427c5c
commit 49aa08c430
+1 -3
View File
@@ -1357,9 +1357,7 @@ function renderGoalRow(goal) {
const missing = !done && goal.missing_qty > 0
? `<div class="goal-missing">${esc(t("goals.missing", { qty: isSkill ? goal.missing_qty : fmt(goal.missing_qty) }))}</div>`
: "";
const deleteBtn = done
? `<button type="button" class="goal-delete-btn" data-goal-id="${goal.id}">${esc(t("goals.delete"))}</button>`
: "";
const deleteBtn = `<button type="button" class="goal-delete-btn" data-goal-id="${goal.id}">${esc(t("goals.delete"))}</button>`;
return `<tr>
<td>${typeBadge}${esc(goal.item_name)}</td>
<td>