From 8ba89434f834f3bdb24a20ccd37af92ae9d4b740 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sun, 27 Jul 2025 01:39:02 -0300 Subject: [PATCH] feat: automatically dismiss htmx error popups after 1 minute this is mostly to avoid being greeted by a popup when you leave the app open and it is unable to auto-update every few minutes --- .../includes/scripts/hyperscript/htmx_error_handler.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/includes/scripts/hyperscript/htmx_error_handler.html b/app/templates/includes/scripts/hyperscript/htmx_error_handler.html index f6c6d8d..1f7eb35 100644 --- a/app/templates/includes/scripts/hyperscript/htmx_error_handler.html +++ b/app/templates/includes/scripts/hyperscript/htmx_error_handler.html @@ -8,6 +8,7 @@ behavior htmx_error_handler title: '{% trans "Access Denied" %}', text: '{% trans "You do not have permission to perform this action or access this resource." %}', icon: 'warning', + timer: 60000, customClass: { confirmButton: 'btn btn-warning' -- Optional: different button style }, @@ -18,6 +19,7 @@ behavior htmx_error_handler title: '{% trans "Something went wrong loading your data" %}', text: '{% trans "Try reloading the page or check the console for more information." %}', icon: 'error', + timer: 60000, customClass: { confirmButton: 'btn btn-primary' },