feat: add reload button to the HTMX error popup

This commit is contained in:
Herculino Trotta
2026-02-01 22:25:47 -03:00
parent d5bbad7887
commit 41adb37fdb

View File

@@ -20,11 +20,16 @@ behavior htmx_error_handler
text: '{% trans "Try reloading the page or check the console for more information." %}',
icon: 'error',
timer: 60000,
showDenyButton: true,
denyButtonText: '{% trans "Reload" %}',
customClass: {
confirmButton: 'btn btn-primary'
confirmButton: 'btn btn-primary',
denyButton: 'btn btn-error',
actions: 'gap-2'
},
buttonsStyling: false
})
buttonsStyling: false,
reverseButtons: true
}) then if it.isDenied call location.reload()
end
then log event
then halt the event