mirror of
https://github.com/gotson/komga.git
synced 2026-04-23 07:22:23 +02:00
feat(webui): enable edit on books and series cards in search screen
This commit is contained in:
parent
a09d3f65e4
commit
32dad62777
1 changed files with 8 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<div v-for="(item, index) in series"
|
<div v-for="(item, index) in series"
|
||||||
:key="index">
|
:key="index">
|
||||||
<item-card class="ma-2 card" :item="item"/>
|
<item-card class="ma-2 card" :item="item" :on-edit="singleEditSeries"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</horizontal-scroller>
|
</horizontal-scroller>
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<div v-for="(item, index) in books"
|
<div v-for="(item, index) in books"
|
||||||
:key="index">
|
:key="index">
|
||||||
<item-card class="ma-2 card" :item="item"/>
|
<item-card class="ma-2 card" :item="item" :on-edit="singleEditBook"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</horizontal-scroller>
|
</horizontal-scroller>
|
||||||
|
|
@ -112,6 +112,12 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
singleEditSeries (series: SeriesDto) {
|
||||||
|
this.$store.dispatch('dialogUpdateSeries', series)
|
||||||
|
},
|
||||||
|
singleEditBook (book: BookDto) {
|
||||||
|
this.$store.dispatch('dialogUpdateBooks', book)
|
||||||
|
},
|
||||||
reloadResults () {
|
reloadResults () {
|
||||||
this.loadResults(this.$route.query.q.toString())
|
this.loadResults(this.$route.query.q.toString())
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue