From ad9d5817cf23b8cef5ac7d3ec5b7926e2d9b8c81 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 18 Apr 2026 08:37:31 -0700 Subject: [PATCH] Fix 'Loading playlist...' stuck forever on error openDownloadMissingModal showed loading overlay but didn't hide it on error paths (playlist not found, fetch failure). The overlay persisted across page navigation, blocking the entire UI. --- webui/static/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webui/static/script.js b/webui/static/script.js index 6a3a0458..4ea19052 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -12093,6 +12093,7 @@ async function openDownloadMissingModal(playlistId) { const playlist = spotifyPlaylists.find(p => p.id === playlistId); if (!playlist) { showToast('Could not find playlist data.', 'error'); + hideLoadingOverlay(); return; } @@ -12109,6 +12110,7 @@ async function openDownloadMissingModal(playlistId) { playlistTrackCache[playlistId] = tracks; } catch (error) { showToast(`Failed to fetch tracks: ${error.message}`, 'error'); + hideLoadingOverlay(); return; } }