()
| 292 | } |
| 293 | |
| 294 | function fillTextareaWithS3RmCommands() { |
| 295 | const selectedCheckboxes = getVisibleCheckedCheckboxes(); |
| 296 | |
| 297 | if (selectedCheckboxes.length === 0) { |
| 298 | showModalWarning( |
| 299 | "No folders selected. Please select folders from the table first.", |
| 300 | ); |
| 301 | document.getElementById("bulk-actions-textarea").value = ""; |
| 302 | return; |
| 303 | } |
| 304 | |
| 305 | hideModalWarning(); |
| 306 | const paths = Array.from(selectedCheckboxes).map((checkbox) => |
| 307 | checkbox.getAttribute("data-path"), |
| 308 | ); |
| 309 | |
| 310 | const commands = paths.map((path) => { |
| 311 | const encodedPath = path.replace(/\\/g, "/"); |
| 312 | return `aws s3 rm s3://codeclash/logs/${encodedPath}/ --recursive`; |
| 313 | }); |
| 314 | |
| 315 | document.getElementById("bulk-actions-textarea").value = commands.join("\n"); |
| 316 | } |
| 317 | |
| 318 | function fillTextareaWithAWSResubmitCommands() { |
| 319 | const selectedCheckboxes = getVisibleCheckedCheckboxes(); |
nothing calls this directly
no test coverage detected