Skip to content

Commit

Permalink
Add confirmation for level deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Jan 18, 2024
1 parent e29ca6c commit 25eaae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ else
</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">
<i class="trash icon"></i>
<span>Delete</span>
Expand Down

0 comments on commit 25eaae1

Please sign in to comment.