MCPcopy Create free account
hub / github.com/error311/FileRise / applyWrite

Function applyWrite

public/js/adminFolderAccess.js:594–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592 cbWrite.checked = granular.some(cb => cb && cb.checked);
593 };
594 const applyWrite = () => {
595 if (!cbWrite) return;
596 granular.forEach(cb => { if (cb) cb.checked = cbWrite.checked; });
597 const any = granular.some(cb => cb && cb.checked);
598 if (any && cbView && !cbView.checked && cbViewOwn && !cbViewOwn.checked) cbViewOwn.checked = true;
599 };
600
601 const onShareFile = () => {
602 if (cbShareF && cbShareF.checked && cbView && !cbView.checked && cbViewOwn && !cbViewOwn.checked) {

Callers 1

wireRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected