fix(webui): bind ticket deletion to help
Module Package Release / publish-packages (push) Successful in 11s

This commit is contained in:
2026-08-24 11:47:24 +02:00
parent 38e038b3a0
commit 0ad2ef96b4
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@govoplan/tickets-webui",
"version": "0.1.21",
"version": "0.1.22",
"private": true,
"type": "module",
"main": "src/index.ts",
+1 -1
View File
@@ -514,7 +514,7 @@ function TicketDetail({ record, availability, history, canTriage, canAssign, can
<Button type="submit" disabled={saving || !comment.trim()}>Add comment</Button>
</form>
</section>}
{canAdmin && <section className="ticket-destructive-actions" aria-label="Destructive ticket actions"><h2>Administrative removal</h2><p>Deletion removes the ticket from active queues and Search while retaining immutable evidence.</p><Button type="button" variant="danger" onClick={onDelete}><Trash2 size={16} /> Delete ticket</Button></section>}
{canAdmin && <section className="ticket-destructive-actions" aria-label="Destructive ticket actions"><h2>Administrative removal</h2><p>Deletion removes the ticket from active queues and Search while retaining immutable evidence.</p><Button type="button" variant="danger" helpContextId="tickets.action.delete" helpModuleId="tickets" onClick={onDelete}><Trash2 size={16} /> Delete ticket</Button></section>}
</article>
);
}