mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 00:13:30 +01:00
feat(webui): collection edition on card in search results
This commit is contained in:
parent
48c590f98a
commit
68fe4fd23d
1 changed files with 4 additions and 1 deletions
|
|
@ -49,7 +49,7 @@
|
|||
<template v-slot:content>
|
||||
<div v-for="(item, index) in collections"
|
||||
:key="index">
|
||||
<item-card class="ma-2 card" :item="item"/>
|
||||
<item-card class="ma-2 card" :item="item" :on-edit="singleEditCollection"/>
|
||||
</div>
|
||||
</template>
|
||||
</horizontal-scroller>
|
||||
|
|
@ -118,6 +118,9 @@ export default Vue.extend({
|
|||
singleEditBook (book: BookDto) {
|
||||
this.$store.dispatch('dialogUpdateBooks', book)
|
||||
},
|
||||
singleEditCollection (collection: CollectionDto) {
|
||||
this.$store.dispatch('dialogEditCollection', collection)
|
||||
},
|
||||
reloadResults () {
|
||||
this.loadResults(this.$route.query.q.toString())
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue