landed "delete topic" function

This commit is contained in:
2026-01-30 16:02:55 -07:00
parent 53845bf6b1
commit d11101aabd
6 changed files with 180 additions and 2 deletions
+24
View File
@@ -31,3 +31,27 @@ messagedefs:
tone: "green"
icon: "✗"
text: "No, Cancel"
- id: "deleteTopic"
title: "Delete Topic"
tone: "red"
destructive: true
message: "You are about to delete a topic!"
warningIcon: "💣"
warningLines:
- text: "Warning: This action cannot be undone!"
bold: true
- text: "Deleting this topic will permanently remove it from the system."
bold: false
buttons:
- id: "yes"
link: "placeholder"
confirm: true
tone: "red"
icon: "✓"
text: "Yes, Delete It"
- id: "no"
link: "placeholder"
confirm: false
tone: "green"
icon: "✗"
text: "No, Cancel"
+1 -1
View File
@@ -61,7 +61,7 @@
</a>
{{ end }}
{{ if canDelete }}
<a href="/TODO"
<a href="{{ topicListLink }}/op/{{ topicNum }}/delete"
class="bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">Delete Topic</a>
{{ end }}
</div>