allow user to open download modal on completed items

This commit is contained in:
Broque Thomas 2026-02-16 10:17:21 -08:00
parent f9b0316d0f
commit 08e34c31b5

View file

@ -21701,13 +21701,6 @@ async function handleArtistAlbumClick(album, albumType) {
const completionStatus = getAlbumCompletionStatus(album.id, albumType);
console.log(`📊 Album completion status: ${completionStatus?.status || 'unknown'} (${completionStatus?.completion_percentage || 0}%)`);
// If album is complete, show informational message and exit
if (completionStatus?.status === 'completed') {
hideLoadingOverlay();
showToast(`${album.name} is already complete in your library`, 'info');
return;
}
// For Artists page, always use Download Missing Tracks modal to analyze and download
console.log(`🔄 Opening download missing tracks modal for album analysis`);
@ -26134,14 +26127,6 @@ function createReleaseCard(release) {
return;
}
// For owned/complete releases, show info message
if (rel.owned && (!rel.track_completion ||
(typeof rel.track_completion === 'object' && rel.track_completion.missing_tracks === 0) ||
(typeof rel.track_completion === 'number' && rel.track_completion === 100))) {
showToast(`${rel.title} is already complete in your library`, "info");
return;
}
showLoadingOverlay('Loading album...');
// For missing or incomplete releases, open wishlist modal