MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / fillTextareaWithFoldernames

Function fillTextareaWithFoldernames

codeclash/viewer/static/js/picker.js:274–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272}
273
274function fillTextareaWithFoldernames() {
275 const selectedCheckboxes = getVisibleCheckedCheckboxes();
276
277 if (selectedCheckboxes.length === 0) {
278 showModalWarning(
279 "No folders selected. Please select folders from the table first.",
280 );
281 document.getElementById("bulk-actions-textarea").value = "";
282 return;
283 }
284
285 hideModalWarning();
286 const folderNames = Array.from(selectedCheckboxes).map((checkbox) => {
287 const fullPath = checkbox.getAttribute("data-path");
288 return fullPath.split("/").pop();
289 });
290 document.getElementById("bulk-actions-textarea").value =
291 folderNames.join(" ");
292}
293
294function fillTextareaWithS3RmCommands() {
295 const selectedCheckboxes = getVisibleCheckedCheckboxes();

Callers

nothing calls this directly

Calls 3

showModalWarningFunction · 0.85
hideModalWarningFunction · 0.85

Tested by

no test coverage detected