diff --git a/changes/changelog.d/search-results.enhancement b/changes/changelog.d/search-results.enhancement new file mode 100644 index 000000000..7effe4c89 --- /dev/null +++ b/changes/changelog.d/search-results.enhancement @@ -0,0 +1 @@ +Improve display of search results by including artist and album data diff --git a/front/src/components/audio/SearchBar.vue b/front/src/components/audio/SearchBar.vue index d7445d13b..77d019b10 100644 --- a/front/src/components/audio/SearchBar.vue +++ b/front/src/components/audio/SearchBar.vue @@ -89,7 +89,7 @@ export default { return r.title }, getDescription (r) { - return '' + return r.artist.name }, getId (t) { return t.id @@ -103,7 +103,7 @@ export default { return r.title }, getDescription (r) { - return '' + return `${r.album.artist.name} - ${r.album.title}` }, getId (t) { return t.id @@ -114,7 +114,7 @@ export default { route: 'library.tags.detail', name: tagLabel, getTitle (r) { - return r.name + return `#${r.name}` }, getDescription (r) { return ''