mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 23:45:11 +01:00
feat(webui): show library name on series picker dialog (import)
closes #559
This commit is contained in:
parent
7b30835e88
commit
626ef3eb40
1 changed files with 5 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue