MCPcopy
hub / github.com/stemdeckapp/stemdeck / reset

Function reset

static/js/job.js:87–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87export function reset() {
88 if (eventSource) {
89 eventSource.close();
90 setEventSource(null);
91 }
92 stopJobPolling();
93 stopPhraseRotation();
94 lastStatus = null;
95 destroyPlayer();
96 errorEl.classList.add("hidden");
97 errorEl.textContent = "";
98 jobBox.classList.add("hidden");
99 jobCancelBtn.classList.add("hidden");
100 jobTitleEl.textContent = "";
101 jobStageEl.textContent = "";
102 jobDetailEl.textContent = "";
103 progressEl.value = 0;
104 setSubmitProcessing(false);
105 setCurrentJobId(null);
106}
107
108function applyState(state) {
109 if (state.job_id) {

Callers 2

importFromUrlFunction · 0.85
wireJobFormFunction · 0.85

Calls 6

setEventSourceFunction · 0.90
destroyPlayerFunction · 0.90
setCurrentJobIdFunction · 0.90
stopJobPollingFunction · 0.85
stopPhraseRotationFunction · 0.85
setSubmitProcessingFunction · 0.85

Tested by

no test coverage detected