diff --git a/webui/static/script.js b/webui/static/script.js
index 1e6df5c5..9ed69b7b 100644
--- a/webui/static/script.js
+++ b/webui/static/script.js
@@ -1639,6 +1639,10 @@ function showPlaylistDetailsModal(playlist) {
document.body.appendChild(modal);
}
+ // Check if there's a completed download missing tracks process for this playlist
+ const activeProcess = activeDownloadProcesses[playlist.id];
+ const hasCompletedProcess = activeProcess && activeProcess.status === 'complete';
+
modal.innerHTML = `
@@ -1728,6 +1736,10 @@ async function openDownloadMissingModal(playlistId) {
closePlaylistDetailsModal(); // Close playlist details modal even when reusing existing modal
const process = activeDownloadProcesses[playlistId];
if (process.modalElement) {
+ // Show helpful message if it's a completed process
+ if (process.status === 'complete') {
+ showToast('Showing previous results. Close this modal to start a new analysis.', 'info');
+ }
process.modalElement.style.display = 'flex';
}
return; // Don't create a new one