(isEnabled)
| 12742 | const logoutBtn = document.getElementById('logout-btn'); |
| 12743 | if (logoutBtn) { |
| 12744 | logoutBtn.classList.toggle('hidden', !status.configured); |
| 12745 | } |
| 12746 | const mobileLogoutBtn = document.getElementById('mobile-logout-btn'); |
| 12747 | if (mobileLogoutBtn) { |
| 12748 | mobileLogoutBtn.classList.toggle('hidden', !status.configured); |
| 12749 | } |
| 12750 | |
| 12751 | // Update summary and badge based on status |
| 12752 | if (status.configured) { |
| 12753 | if (badge) { badge.classList.remove('hidden'); } |
| 12754 | if (summary) { |
| 12755 | summary.innerHTML = '<p class="text-sm text-green-400">Authentication is enabled. Database is encrypted and hardware-bound. Expand to manage.</p>'; |
| 12756 | } |
| 12757 | } else { |
no test coverage detected