feat: show filtered count when filter is applied

This commit is contained in:
2025-03-24 15:32:35 -07:00
parent 76749ba6b8
commit e6f00559a9

View File

@ -39,6 +39,7 @@
if(title) { if(title) {
result = result.filter(song => song.title.toLowerCase().includes(title.toLowerCase())); result = result.filter(song => song.title.toLowerCase().includes(title.toLowerCase()));
} }
document.getElementById('count').innerText = `Filtered to ${result.length} songs from ${songList.length}.`;
updateTable(result); updateTable(result);
} }
const loadSongs = (songs) => { const loadSongs = (songs) => {