MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / showError

Function showError

static/js/job.js:69–85  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

67}
68
69export function showError(message) {
70 errorEl.textContent = "";
71 const msg = document.createElement("div");
72 msg.className = "error-msg";
73 msg.textContent = message;
74 const retry = document.createElement("button");
75 retry.className = "retry-btn";
76 retry.type = "button";
77 retry.textContent = "Try again";
78 retry.addEventListener("click", () => {
79 errorEl.classList.add("hidden");
80 urlInput.focus();
81 urlInput.select();
82 });
83 errorEl.append(msg, retry);
84 errorEl.classList.remove("hidden");
85}
86
87export function reset() {
88 if (eventSource) {

Callers 7

loadTrackIntoStudioFunction · 0.90
wireFooterControlsFunction · 0.90
applyFileFunction · 0.90
applyStateFunction · 0.70
openFunction · 0.70
importFromUrlFunction · 0.70
wireJobFormFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected