fix: ip ban deletion through ui

This commit is contained in:
trisua 2025-05-21 23:56:22 -04:00
parent 829eef7f5d
commit f746290d97

View file

@ -28,7 +28,7 @@
<div class="card w-full flex flex-wrap gap-2"> <div class="card w-full flex flex-wrap gap-2">
<button <button
onclick="remove_report('{{ item.ip }}')" onclick="remove_ipban('{{ item.ip }}')"
class="red quaternary" class="red quaternary"
> >
{{ icon "trash" }} {{ icon "trash" }}
@ -46,7 +46,7 @@
</main> </main>
<script> <script>
async function remove_ban(ip) { async function remove_ipban(ip) {
if ( if (
!(await trigger("atto::confirm", [ !(await trigger("atto::confirm", [
"Are you sure you would like to do this?", "Are you sure you would like to do this?",