(type)
| 555 | } |
| 556 | |
| 557 | function syncLocalSelectAllState(type) { |
| 558 | const selectAll = type === 'image' ? ui.localImageSelectAll : ui.localVideoSelectAll; |
| 559 | if (!selectAll) return; |
| 560 | const total = cacheListState[type]?.items?.length || 0; |
| 561 | const selected = selectedLocal[type]?.size || 0; |
| 562 | selectAll.checked = total > 0 && selected === total; |
| 563 | selectAll.indeterminate = selected > 0 && selected < total; |
| 564 | } |
| 565 | |
| 566 | function syncRowCheckboxes() { |
| 567 | const tbody = ui.accountTableBody; |
no outgoing calls
no test coverage detected