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

Function refreshLibrarySyncSummary

static/js/catalog.js:1748–1756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1746// Update the editor's footer line with the out-of-sync count (red) or an
1747// all-clear message. Safe no-op when the editor isn't open.
1748function refreshLibrarySyncSummary() {
1749 const statusEl = libraryEditor?.querySelector(".library-editor-status");
1750 if (!statusEl) return;
1751 const n = libraryUnavailableCount();
1752 statusEl.classList.toggle("out-of-sync", n > 0);
1753 statusEl.textContent = n > 0
1754 ? `${n} ${n === 1 ? "track is" : "tracks are"} out of sync`
1755 : "All tracks in sync";
1756}
1757
1758function closeLibraryEditor() {
1759 if (libraryEditorOnKey) {

Callers 2

openLibraryEditorFunction · 0.85
resyncLibraryFunction · 0.85

Calls 1

libraryUnavailableCountFunction · 0.85

Tested by

no test coverage detected