mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-23 09:08:39 +02:00
feat: add reload button to the HTMX error popup
This commit is contained in:
@@ -20,11 +20,16 @@ behavior htmx_error_handler
|
|||||||
text: '{% trans "Try reloading the page or check the console for more information." %}',
|
text: '{% trans "Try reloading the page or check the console for more information." %}',
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
timer: 60000,
|
timer: 60000,
|
||||||
|
showDenyButton: true,
|
||||||
|
denyButtonText: '{% trans "Reload" %}',
|
||||||
customClass: {
|
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
|
end
|
||||||
then log event
|
then log event
|
||||||
then halt the event
|
then halt the event
|
||||||
|
|||||||
Reference in New Issue
Block a user