From eeeb7a75cdf4537b6c01b9fa821c5d9e6cbbdea8 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 18 Sep 2013 19:33:27 -0400 Subject: [PATCH] show album count --- dashboard-ui/scripts/librarybrowser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index a14ecc6158..02a348defe 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -283,6 +283,12 @@ } else if (options.context == "music") { + if (item.AlbumCount) { + + childText = item.AlbumCount == 1 ? "1 Album" : item.AlbumCount + " Albums"; + + counts.push(childText); + } if (item.SongCount) { childText = item.SongCount == 1 ? "1 Song" : item.SongCount + " Songs";