mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
- Currently when HTMX tries to fetch a page and fails, it silently fails and does not perform any further operations. So, the installation page is stuck. This is also leading to functional test case failures. - Handle errors in page response and errors while making requests and reload the entire page. This will result in browser showing appropriate error page. User will understand that the operation has failed. - Also add HTMX event listeners on the body as shown in HTMX documentation. Tests: - Press install. After installation process has started, stop Apache web server. Without the patch, HTMX fails silently and the installation progress is shown indefinitely. - With the patch applied, the connection error page is properly shown. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>