From 3a1aa3d7232ba24725b1b9215c296747bb8b242c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 13 May 2024 09:43:30 -0300 Subject: search, client: album results --- src/static/js/client.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/static') diff --git a/src/static/js/client.js b/src/static/js/client.js index ceaec460..dab1ea37 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -3590,6 +3590,7 @@ const sidebarSearchInfo = initInfo('sidebarSearchInfo', { currentResultString: null, endSearchString: null, + albumResultKindString: null, artistResultKindString: null, groupResultKindString: null, @@ -3632,6 +3633,9 @@ function getSidebarSearchReferences() { info.endSearchString = findString('end-search'); + info.albumResultKindString = + findString('album-result-kind'); + info.artistResultKindString = findString('artist-result-kind'); @@ -3844,6 +3848,16 @@ function generateSidebarSearchResult(result) { }; switch (result.referenceType) { + case 'album': { + preparedSlots.href = + openAlbum(result.directory); + + preparedSlots.kindString = + info.albumResultKindString; + + break; + } + case 'artist': { preparedSlots.href = openArtist(result.directory); -- cgit 1.3.0-6-gf8a5