MCPcopy
hub / github.com/FujiwaraChoki/MoneyPrinter / setGeneratingState

Function setGeneratingState

Frontend/app.js:241–255  ·  view source on GitHub ↗
(active)

Source from the content-addressed store, hash-verified

239
240// ===== GENERATE / CANCEL =====
241function setGeneratingState(active) {
242 if (active) {
243 generateButton.classList.add("hidden");
244 cancelButton.classList.remove("hidden");
245 statusArea.classList.add("active");
246 } else {
247 stopJobPolling();
248 activeJobId = null;
249 generateButton.classList.remove("hidden");
250 cancelButton.classList.add("hidden");
251 statusArea.classList.remove("active");
252 generateButton.disabled = false;
253 logViewer.classList.remove("active");
254 }
255}
256
257function cancelGeneration() {
258 const targetPath = activeJobId ? `/api/jobs/${activeJobId}/cancel` : "/api/cancel";

Callers 2

pollJobFunction · 0.85
generateVideoFunction · 0.85

Calls 1

stopJobPollingFunction · 0.85

Tested by

no test coverage detected