mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-11 07:12:57 +02:00
Merge pull request #297
feat: automatically dismiss htmx error popups after 1 minute
This commit is contained in:
@@ -8,6 +8,7 @@ behavior htmx_error_handler
|
|||||||
title: '{% trans "Access Denied" %}',
|
title: '{% trans "Access Denied" %}',
|
||||||
text: '{% trans "You do not have permission to perform this action or access this resource." %}',
|
text: '{% trans "You do not have permission to perform this action or access this resource." %}',
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
|
timer: 60000,
|
||||||
customClass: {
|
customClass: {
|
||||||
confirmButton: 'btn btn-warning' -- Optional: different button style
|
confirmButton: 'btn btn-warning' -- Optional: different button style
|
||||||
},
|
},
|
||||||
@@ -18,6 +19,7 @@ behavior htmx_error_handler
|
|||||||
title: '{% trans "Something went wrong loading your data" %}',
|
title: '{% trans "Something went wrong loading your data" %}',
|
||||||
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,
|
||||||
customClass: {
|
customClass: {
|
||||||
confirmButton: 'btn btn-primary'
|
confirmButton: 'btn btn-primary'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user