Merge branch '882-search-same-name' into 'develop'
Improve display of search results by including artist and album data See merge request funkwhale/funkwhale!842
This commit is contained in:
commit
8a3148c025
|
@ -0,0 +1 @@
|
||||||
|
Improve display of search results by including artist and album data
|
|
@ -89,7 +89,7 @@ export default {
|
||||||
return r.title
|
return r.title
|
||||||
},
|
},
|
||||||
getDescription (r) {
|
getDescription (r) {
|
||||||
return ''
|
return r.artist.name
|
||||||
},
|
},
|
||||||
getId (t) {
|
getId (t) {
|
||||||
return t.id
|
return t.id
|
||||||
|
@ -103,7 +103,7 @@ export default {
|
||||||
return r.title
|
return r.title
|
||||||
},
|
},
|
||||||
getDescription (r) {
|
getDescription (r) {
|
||||||
return ''
|
return `${r.album.artist.name} - ${r.album.title}`
|
||||||
},
|
},
|
||||||
getId (t) {
|
getId (t) {
|
||||||
return t.id
|
return t.id
|
||||||
|
@ -114,7 +114,7 @@ export default {
|
||||||
route: 'library.tags.detail',
|
route: 'library.tags.detail',
|
||||||
name: tagLabel,
|
name: tagLabel,
|
||||||
getTitle (r) {
|
getTitle (r) {
|
||||||
return r.name
|
return `#${r.name}`
|
||||||
},
|
},
|
||||||
getDescription (r) {
|
getDescription (r) {
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue