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

Function updateScansToggleButton

web/scripts/ragnar_modern.js:19060–19075  ·  view source on GitHub ↗
(totalScans)

Source from the content-addressed store, hash-verified

19058 const modeLabel = document.getElementById('Ragnar-mode');
19059 if (modeLabel) {
19060 modeLabel.className = 'text-purple-300 font-semibold';
19061 }
19062
19063 if (statusEl) {
19064 statusEl.textContent = 'Automation disabled - Ragnar is sleeping';
19065 statusEl.className = 'text-sm text-orange-600 mt-4';
19066
19067 // Hide status after 3 seconds
19068 setTimeout(() => {
19069 if (statusEl) {
19070 statusEl.classList.add('hidden');
19071 }
19072 }, 3000);
19073 }
19074
19075 } else {
19076 addConsoleMessage(`Failed to stop automatic mode: ${data.message || 'Unknown error'}`, 'error');
19077 if (statusEl) {
19078 statusEl.textContent = `Error: ${data.message || 'Failed to stop automatic mode'}`;

Callers 1

updateActiveScansFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected