Route discover batch card clicks to discover download modal
This commit is contained in:
parent
30e3ed621a
commit
0fed25b51a
1 changed files with 6 additions and 0 deletions
|
|
@ -2638,6 +2638,12 @@ function _adlOpenBatchModal(batchId, playlistId, batchName) {
|
||||||
return;
|
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 other batches, try to show existing modal or rehydrate
|
||||||
for (const [pid, process] of Object.entries(activeDownloadProcesses)) {
|
for (const [pid, process] of Object.entries(activeDownloadProcesses)) {
|
||||||
if (process.batchId === batchId && process.modalElement && document.body.contains(process.modalElement)) {
|
if (process.batchId === batchId && process.modalElement && document.body.contains(process.modalElement)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue