Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
refactor(search): display library name when item is in multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Sep 27, 2020
1 parent 1a77470 commit 5b931ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 5b931ee

Please sign in to comment.