landed "delete topic" function
This commit is contained in:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user