Add confirmation for level deletions

This commit is contained in:
sudokoko 2024-01-17 19:57:18 -05:00
parent e29ca6cdcb
commit 25eaae1542
No known key found for this signature in database
GPG key ID: 48BB40C0F649D603

View file

@ -236,7 +236,8 @@ else
</a> </a>
} }
<a href="/moderation/slot/@Model.Slot?.SlotId/delete"> <a href="/moderation/slot/@Model.Slot?.SlotId/delete"
onclick="return confirm('Are you sure you want to delete this level? This action cannot be reversed.')">
<div class="ui red button"> <div class="ui red button">
<i class="trash icon"></i> <i class="trash icon"></i>
<span>Delete</span> <span>Delete</span>