Merge pull request #509 from eitchtee/dev

feat: add reload button to the HTMX error popup
This commit is contained in:
Herculino Trotta
2026-02-01 22:28:03 -03:00
committed by GitHub

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