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

Function onWriteToggle

public/js/adminFolderAccess.js:154–160  ·  view source on GitHub ↗
(row, checked)

Source from the content-addressed store, hash-verified

152}
153
154function onWriteToggle(row, checked) {
155 const caps = ["create", "upload", "edit", "rename", "copy", "delete", "extract"];
156 caps.forEach(c => {
157 const box = qs(row, `input[data-cap="${c}"]`);
158 if (box) box.checked = checked;
159 });
160}
161
162async function safeJson(res) {
163 const text = await res.text();

Callers 1

renderFolderGrantsUIFunction · 0.70

Calls 1

qsFunction · 0.70

Tested by

no test coverage detected