()
| 272 | } |
| 273 | |
| 274 | function 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 | |
| 294 | function fillTextareaWithS3RmCommands() { |
| 295 | const selectedCheckboxes = getVisibleCheckedCheckboxes(); |
nothing calls this directly
no test coverage detected