()
| 96 | } |
| 97 | |
| 98 | function updateSelectAllCheckbox() { |
| 99 | const selectAllCheckbox = document.getElementById("select-all"); |
| 100 | if (!selectAllCheckbox) return; |
| 101 | |
| 102 | const allGameCheckboxes = document.querySelectorAll("input[data-path]"); |
| 103 | if (allGameCheckboxes.length === 0) { |
| 104 | selectAllCheckbox.checked = false; |
| 105 | selectAllCheckbox.indeterminate = false; |
| 106 | return; |
| 107 | } |
| 108 | |
| 109 | const checkedCount = document.querySelectorAll( |
| 110 | "input[data-path]:checked", |
| 111 | ).length; |
| 112 | |
| 113 | if (checkedCount === 0) { |
| 114 | selectAllCheckbox.checked = false; |
| 115 | selectAllCheckbox.indeterminate = false; |
| 116 | } else if (checkedCount === allGameCheckboxes.length) { |
| 117 | selectAllCheckbox.checked = true; |
| 118 | selectAllCheckbox.indeterminate = false; |
| 119 | } else { |
| 120 | selectAllCheckbox.checked = false; |
| 121 | selectAllCheckbox.indeterminate = true; |
| 122 | } |
| 123 | |
| 124 | updateRunsStatus(); |
| 125 | } |
| 126 | |
| 127 | function updateRunsStatus() { |
| 128 | const statusElement = document.getElementById("runs-status"); |
no test coverage detected