allow user to open download modal on completed items
This commit is contained in:
parent
f9b0316d0f
commit
08e34c31b5
1 changed files with 0 additions and 15 deletions
|
|
@ -21701,13 +21701,6 @@ async function handleArtistAlbumClick(album, albumType) {
|
||||||
const completionStatus = getAlbumCompletionStatus(album.id, albumType);
|
const completionStatus = getAlbumCompletionStatus(album.id, albumType);
|
||||||
console.log(`📊 Album completion status: ${completionStatus?.status || 'unknown'} (${completionStatus?.completion_percentage || 0}%)`);
|
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
|
// For Artists page, always use Download Missing Tracks modal to analyze and download
|
||||||
console.log(`🔄 Opening download missing tracks modal for album analysis`);
|
console.log(`🔄 Opening download missing tracks modal for album analysis`);
|
||||||
|
|
||||||
|
|
@ -26134,14 +26127,6 @@ function createReleaseCard(release) {
|
||||||
return;
|
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...');
|
showLoadingOverlay('Loading album...');
|
||||||
|
|
||||||
// For missing or incomplete releases, open wishlist modal
|
// For missing or incomplete releases, open wishlist modal
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue