()
| 577 | } |
| 578 | |
| 579 | function syncSelectAllState() { |
| 580 | const selectAll = ui.selectAll; |
| 581 | if (!selectAll) return; |
| 582 | const total = accountMap.size; |
| 583 | const selected = selectedTokens.size; |
| 584 | selectAll.checked = total > 0 && selected === total; |
| 585 | selectAll.indeterminate = selected > 0 && selected < total; |
| 586 | } |
| 587 | |
| 588 | function updateSelectedCount() { |
| 589 | const el = ui.selectedCount; |
no outgoing calls
no test coverage detected