mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02: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-row v-if="results">
|
||||||
<v-col>
|
<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"
|
<div v-for="(s, index) in results"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<v-list-item @click="select(s)">
|
<v-list-item @click="select(s)">
|
||||||
<v-list-item-content>
|
<v-list-item-content>
|
||||||
<v-list-item-title>{{ s.metadata.title }}</v-list-item-title>
|
<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-content>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-divider v-if="index !== results.length-1"/>
|
<v-divider v-if="index !== results.length-1"/>
|
||||||
|
|
@ -118,6 +119,9 @@ export default Vue.extend({
|
||||||
dialogClose() {
|
dialogClose() {
|
||||||
this.$emit('input', false)
|
this.$emit('input', false)
|
||||||
},
|
},
|
||||||
|
getLibraryName(item: SeriesDto): string {
|
||||||
|
return this.$store.getters.getLibraryById(item.libraryId).name;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue