diff --git a/src/components/modals/WebServiceStatusDetailModal.jsx b/src/components/modals/WebServiceStatusDetailModal.jsx index 45a7e73ae..d432670cc 100644 --- a/src/components/modals/WebServiceStatusDetailModal.jsx +++ b/src/components/modals/WebServiceStatusDetailModal.jsx @@ -104,9 +104,7 @@ export default function WebServiceStatusDetailModal({ setModalOpen }) { {serviceStatus === '❌' ? (

- Downed status could be because the web service - has a self-signed cert and you will need to - visit the API at least once to approve access. + The web app had trouble connecting to the web server.

{ + const navbarLinks = document.querySelectorAll('.navbar-nav .nav-link') + + const handleCollapse = () => { + const navbarCollapse = document.getElementById('navbarSupportedContent') + if (navbarCollapse.classList.contains('show')) { + const bsCollapse = new window.bootstrap.Collapse(navbarCollapse) + bsCollapse.hide() + } + } + + navbarLinks.forEach(link => { + link.addEventListener('click', handleCollapse) + }) + + return () => { + navbarLinks.forEach(link => { + link.removeEventListener('click', handleCollapse) + }) + } + }, []) + + const handleNavLinkClick = () => { + const navbarCollapse = document.getElementById('navbarSupportedContent'); + if (navbarCollapse && navbarCollapse.classList.contains('show')) { + navbarCollapse.classList.remove('show'); + } + } + return (
{modalOpen ? ( @@ -53,7 +83,7 @@ export default function Header({ setToastState }) { }`} >
- + Home