generated from nhcarrigan/template
feat: show filtered count when filter is applied
This commit is contained in:
parent
76749ba6b8
commit
e6f00559a9
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user