(scanId)
| 19228 | if (!button || button.dataset.busy === 'true') { |
| 19229 | return; |
| 19230 | } |
| 19231 | |
| 19232 | const action = button.dataset.action || 'stop'; |
| 19233 | const targetStateEnabled = action === 'start'; |
| 19234 | button.dataset.busy = 'true'; |
| 19235 | button.disabled = true; |
| 19236 | button.classList.add('opacity-70'); |
| 19237 | button.textContent = action === 'start' ? 'Enabling...' : 'Disabling...'; |
| 19238 | |
| 19239 | try { |
| 19240 | let data; |
| 19241 | if (action === 'start') { |
| 19242 | data = await startOrchestrator(); |
nothing calls this directly
no test coverage detected