MCPcopy Create free account
hub / github.com/TQZHR/grok2api / syncLocalSelectAllState

Function syncLocalSelectAllState

app/static/cache/cache.js:557–564  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

555}
556
557function 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
566function syncRowCheckboxes() {
567 const tbody = ui.accountTableBody;

Callers 3

toggleLocalSelectFunction · 0.85
syncLocalRowCheckboxesFunction · 0.85
renderLocalCacheListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected