feat(webui): show library name on series picker dialog (import)

closes #559
This commit is contained in:
Gauthier Roebroeck 2021-06-23 09:52:09 +08:00
parent 7b30835e88
commit 626ef3eb40

View file

@ -29,13 +29,14 @@
<v-row v-if="results">
<v-col>
<v-list elevation="5" v-if="results.length > 0">
<v-list elevation="5" v-if="results.length > 0" two-line>
<div v-for="(s, index) in results"
:key="index"
>
<v-list-item @click="select(s)">
<v-list-item-content>
<v-list-item-title>{{ s.metadata.title }}</v-list-item-title>
<v-list-item-subtitle>{{ $t('searchbox.in_library', {library: getLibraryName(s)}) }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
<v-divider v-if="index !== results.length-1"/>
@ -118,6 +119,9 @@ export default Vue.extend({
dialogClose() {
this.$emit('input', false)
},
getLibraryName(item: SeriesDto): string {
return this.$store.getters.getLibraryById(item.libraryId).name;
},
},
})
</script>