(processing)
| 22 | const TERMINAL_STATUSES = new Set(["done", "error", "cancelled"]); |
| 23 | |
| 24 | function setSubmitProcessing(processing) { |
| 25 | submitBtn.disabled = processing; |
| 26 | submitBtn.classList.toggle("loading", processing); |
| 27 | document.querySelector(".strip-sq-process")?.classList.toggle("loading", processing); |
| 28 | const label = submitBtn.querySelector("span"); |
| 29 | if (label) label.textContent = processing ? "Processing" : "Process"; |
| 30 | } |
| 31 | |
| 32 | function pickPhrase(status) { |
| 33 | const pool = stagePhrases[status] || stagePhrases.default; |
no outgoing calls
no test coverage detected