MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / updateAttackWarningBanner

Function updateAttackWarningBanner

web/scripts/ragnar_modern.js:12744–12754  ·  view source on GitHub ↗
(isEnabled)

Source from the content-addressed store, hash-verified

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 {

Callers 3

initializeSocketFunction · 0.70
displayConfigFormFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected