From 0fed25b51a9ab4e70ffa9bf6d36e1bf46b4f5383 Mon Sep 17 00:00:00 2001 From: JohnBaumb <80135794+JohnBaumb@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:13:07 -0700 Subject: [PATCH] Route discover batch card clicks to discover download modal --- webui/static/pages-extra.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webui/static/pages-extra.js b/webui/static/pages-extra.js index 1ac5f919..6aaf6694 100644 --- a/webui/static/pages-extra.js +++ b/webui/static/pages-extra.js @@ -2638,6 +2638,12 @@ function _adlOpenBatchModal(batchId, playlistId, batchName) { return; } + // For discover batches, use the discover-specific modal path + if (playlistId.startsWith('discover_') && typeof openDiscoverDownloadModal === 'function') { + openDiscoverDownloadModal(playlistId); + return; + } + // For other batches, try to show existing modal or rehydrate for (const [pid, process] of Object.entries(activeDownloadProcesses)) { if (process.batchId === batchId && process.modalElement && document.body.contains(process.modalElement)) {