(row, checked)
| 152 | } |
| 153 | |
| 154 | function 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 | |
| 162 | async function safeJson(res) { |
| 163 | const text = await res.text(); |
no test coverage detected