From f704e76e8632071154a955ae17a0f5dee78a6b12 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 1 Jun 2024 20:08:16 -0300 Subject: search, client: art tag results --- src/static/js/client.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/static/js') diff --git a/src/static/js/client.js b/src/static/js/client.js index b7b19d7f..733e4586 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -277,6 +277,7 @@ const getLinkHref = (type, directory) => rebase(`${type}/${directory}`); */ const openAlbum = d => rebase(`album/${d}`); +const openArtTag = d => rebase(`tag/${d}`); const openArtist = d => rebase(`artist/${d}`); const openFlash = d => rebase(`flash/${d}`); const openGroup = d => rebase(`group/${d}`); @@ -3789,6 +3790,7 @@ const sidebarSearchInfo = initInfo('sidebarSearchInfo', { albumResultKindString: null, artistResultKindString: null, groupResultKindString: null, + tagResultKindString: null, state: { sidebarColumnShownForSearch: null, @@ -3884,6 +3886,9 @@ function getSidebarSearchReferences() { info.groupResultKindString = findString('group-result-kind'); + + info.tagResultKindString = + findString('art-tag-result-kind'); } function addSidebarSearchInternalListeners() { @@ -4397,6 +4402,16 @@ function generateSidebarSearchResult(result) { break; } + case 'tag': { + preparedSlots.href = + openArtTag(result.directory); + + preparedSlots.kindString = + info.tagResultKindString; + + break; + } + case 'track': { preparedSlots.href = openTrack(result.directory); -- cgit 1.3.0-6-gf8a5