()
| 255 | } |
| 256 | |
| 257 | function cancelGeneration() { |
| 258 | const targetPath = activeJobId ? `/api/jobs/${activeJobId}/cancel` : "/api/cancel"; |
| 259 | |
| 260 | apiRequest(targetPath, { |
| 261 | method: "POST", |
| 262 | headers: { |
| 263 | "Content-Type": "application/json", |
| 264 | Accept: "application/json", |
| 265 | }, |
| 266 | }) |
| 267 | .then((data) => showToast(data.message, "success")) |
| 268 | .catch(() => showToast("Failed to cancel. Is the server running?", "error")); |
| 269 | } |
| 270 | |
| 271 | async function uploadSongs() { |
| 272 | const files = songFiles.files; |
nothing calls this directly
no test coverage detected