(checkbox)
| 17646 | const missing = missingCritical.concat(missingOptional); |
| 17647 | repairMsg.textContent = missing.length |
| 17648 | ? `Missing or broken: ${missing.join(', ')}.` |
| 17649 | : 'Some components need attention. Re-run the installer to repair.'; |
| 17650 | } |
| 17651 | |
| 17652 | const busy = Boolean(status.installing); |
| 17653 | |
| 17654 | const repairBtn = document.getElementById('pwn-repair-btn'); |
| 17655 | if (repairBtn) { |
| 17656 | repairBtn.disabled = busy; |
| 17657 | repairBtn.textContent = busy ? 'Repairing…' : 'Repair Installation'; |
| 17658 | repairBtn.classList.toggle('opacity-70', busy); |
| 17659 | repairBtn.classList.toggle('cursor-not-allowed', busy); |
| 17660 | } |
| 17661 | |
| 17662 | // Reinstall is always offered (even when Healthy) as a guaranteed clean rebuild. |
nothing calls this directly
no test coverage detected