refactor(search): display library name when item is in multiple

This commit is contained in:
Travis Shivers 2020-09-27 18:17:08 -05:00
parent 1a77470a99
commit 5b931eedc4
No known key found for this signature in database
GPG Key ID: EE4CC2891B8FCD33
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,7 @@
<v-list-item-content>
<v-list-item-title> {{ getTitle(item) }} </v-list-item-title>
<v-list-item-subtitle> {{ getSecondaryTitle(item) }} </v-list-item-subtitle>
<v-list-item-subtitle> {{ getItemSecondaryTitle(item) }} </v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</template>
@ -159,6 +159,10 @@ export default {
'SEARCH_PLEX_SERVER_HUB',
]),
getItemSecondaryTitle(item) {
return item.reasonTitle || this.getSecondaryTitle(item);
},
getItemThumb({ type, thumb, grandparentThumb }) {
switch (type) {
case 'movie':