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

Function syncDisplayRows

web/scripts/ragnar_modern.js:12673–12688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12671 badge.textContent = labels[current] || current;
12672 badge.className = 'text-xs px-2 py-0.5 rounded ' + (
12673 current === 'high' ? 'bg-red-700 text-red-200' :
12674 current === 'medium' ? 'bg-yellow-700 text-yellow-200' :
12675 'bg-green-700 text-green-200'
12676 );
12677 }
12678 } catch (e) {
12679 console.error('Failed to load scan intensity:', e);
12680 }
12681}
12682
12683async function onScanIntensityChanged(selectEl) {
12684 const value = selectEl.value;
12685 const status = document.getElementById('scan-intensity-status');
12686 try {
12687 const res = await fetch('/api/config/scan-intensity', {
12688 method: 'POST',
12689 headers: { 'Content-Type': 'application/json' },
12690 body: JSON.stringify({ intensity: value })
12691 });

Callers 1

displayConfigFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected