This commit is contained in:
cangui 2025-05-11 09:24:32 +02:00
parent 17be526718
commit 1740282725

View File

@ -49,9 +49,12 @@
hx-delete="/api/user/delete/{{ .ID }}"
hx-confirm="Confirmer suppression ?"
hx-target="#userList"
hx-swap="outerHTML">
hx-swap="outerHTML"
hx-on="htmx:afterRequest: if (event.detail.xhr.status === 200) { alert('Utilisateur supprimé avec succès'); setTimeout(() => window.location.reload(), 500); }">
🗑️ Supprimer
</button>
</td>
</tr>
{{ end }}