mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
show album count
This commit is contained in:
parent
018f75d19b
commit
eeeb7a75cd
1 changed files with 6 additions and 0 deletions
|
@ -283,6 +283,12 @@
|
||||||
}
|
}
|
||||||
else if (options.context == "music") {
|
else if (options.context == "music") {
|
||||||
|
|
||||||
|
if (item.AlbumCount) {
|
||||||
|
|
||||||
|
childText = item.AlbumCount == 1 ? "1 Album" : item.AlbumCount + " Albums";
|
||||||
|
|
||||||
|
counts.push(childText);
|
||||||
|
}
|
||||||
if (item.SongCount) {
|
if (item.SongCount) {
|
||||||
|
|
||||||
childText = item.SongCount == 1 ? "1 Song" : item.SongCount + " Songs";
|
childText = item.SongCount == 1 ? "1 Song" : item.SongCount + " Songs";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue