()
| 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. |
| 1748 | function 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 | |
| 1758 | function closeLibraryEditor() { |
| 1759 | if (libraryEditorOnKey) { |
no test coverage detected