mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix(webui): show recent books before series
This commit is contained in:
parent
c3b352aca0
commit
7f49bfa05e
1 changed files with 18 additions and 18 deletions
|
|
@ -75,6 +75,21 @@
|
||||||
</template>
|
</template>
|
||||||
</horizontal-scroller>
|
</horizontal-scroller>
|
||||||
|
|
||||||
|
<horizontal-scroller v-if="latestBooks.length !== 0" class="mb-4">
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<div class="title">{{ $t('dashboard.recently_added_books') }}</div>
|
||||||
|
</template>
|
||||||
|
<template v-slot:content>
|
||||||
|
<item-browser :items="latestBooks"
|
||||||
|
nowrap
|
||||||
|
:edit-function="singleEditBook"
|
||||||
|
:selected.sync="selectedBooks"
|
||||||
|
:selectable="selectedSeries.length === 0"
|
||||||
|
:fixed-item-width="fixedCardWidth"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</horizontal-scroller>
|
||||||
|
|
||||||
<horizontal-scroller v-if="newSeries.length !== 0" class="mb-4">
|
<horizontal-scroller v-if="newSeries.length !== 0" class="mb-4">
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<div class="title">{{ $t('dashboard.recently_added_series') }}</div>
|
<div class="title">{{ $t('dashboard.recently_added_series') }}</div>
|
||||||
|
|
@ -104,21 +119,6 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</horizontal-scroller>
|
</horizontal-scroller>
|
||||||
|
|
||||||
<horizontal-scroller v-if="latestBooks.length !== 0" class="mb-4">
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<div class="title">{{ $t('dashboard.recently_added_books') }}</div>
|
|
||||||
</template>
|
|
||||||
<template v-slot:content>
|
|
||||||
<item-browser :items="latestBooks"
|
|
||||||
nowrap
|
|
||||||
:edit-function="singleEditBook"
|
|
||||||
:selected.sync="selectedBooks"
|
|
||||||
:selectable="selectedSeries.length === 0"
|
|
||||||
:fixed-item-width="fixedCardWidth"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</horizontal-scroller>
|
|
||||||
</v-container>
|
</v-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -227,11 +227,11 @@ export default Vue.extend({
|
||||||
this.library = this.getLibraryLazy(libraryId)
|
this.library = this.getLibraryLazy(libraryId)
|
||||||
this.selectedSeries = []
|
this.selectedSeries = []
|
||||||
this.selectedBooks = []
|
this.selectedBooks = []
|
||||||
this.loadNewSeries(libraryId)
|
|
||||||
this.loadUpdatedSeries(libraryId)
|
|
||||||
this.loadLatestBooks(libraryId)
|
|
||||||
this.loadInProgressBooks(libraryId)
|
this.loadInProgressBooks(libraryId)
|
||||||
this.loadOnDeckBooks(libraryId)
|
this.loadOnDeckBooks(libraryId)
|
||||||
|
this.loadLatestBooks(libraryId)
|
||||||
|
this.loadNewSeries(libraryId)
|
||||||
|
this.loadUpdatedSeries(libraryId)
|
||||||
},
|
},
|
||||||
replaceSeries(series: SeriesDto) {
|
replaceSeries(series: SeriesDto) {
|
||||||
let index = this.newSeries.findIndex(x => x.id === series.id)
|
let index = this.newSeries.findIndex(x => x.id === series.id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue