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

Function setCurrentTrack

static/js/catalog.js:572–578  ·  view source on GitHub ↗
(trackId)

Source from the content-addressed store, hash-verified

570}
571
572export function setCurrentTrack(trackId) {
573 _currentTrackId = trackId;
574 for (const el of document.querySelectorAll(".cat-item.active")) el.classList.remove("active");
575 for (const el of document.querySelectorAll(`.cat-item[data-id="${trackId}"]`)) el.classList.add("active");
576 for (const el of document.querySelectorAll(".strip-thumb.active")) el.classList.remove("active");
577 for (const el of document.querySelectorAll(`.strip-thumb[data-id="${trackId}"]`)) el.classList.add("active");
578}
579
580// ─── Folder operations ───
581

Callers 4

applyStateFunction · 0.90
importFromUrlFunction · 0.90
wireJobFormFunction · 0.90
loadTrackIntoStudioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected