mirror of
https://github.com/gotson/komga.git
synced 2025-12-21 16:03:03 +01:00
parent
3ca50d7b34
commit
4962f17028
2 changed files with 16 additions and 0 deletions
|
|
@ -12,7 +12,17 @@
|
|||
lazy-src="../assets/cover.svg"
|
||||
aspect-ratio="0.7071"
|
||||
>
|
||||
<!-- unread tick for books -->
|
||||
<div class="unread" v-if="isUnread"/>
|
||||
|
||||
<!-- unread count for series -->
|
||||
<span v-if="unreadCount"
|
||||
class="white--text pa-1 px-2 subtitle-2"
|
||||
:style="{background: 'orange', position: 'absolute', right: 0}"
|
||||
>
|
||||
{{ unreadCount }}
|
||||
</span>
|
||||
|
||||
<v-fade-transition>
|
||||
<v-overlay
|
||||
v-if="hover || selected || preselect"
|
||||
|
|
@ -129,6 +139,10 @@ export default Vue.extend({
|
|||
if ('seriesId' in this.item) return getReadProgress(this.item) === ReadProgress.UNREAD
|
||||
return false
|
||||
},
|
||||
unreadCount (): number | undefined {
|
||||
if (!('seriesId' in this.item)) return this.item.booksUnreadCount
|
||||
return undefined
|
||||
},
|
||||
readProgressPercentage (): number {
|
||||
if ('seriesId' in this.item) return getReadProgressPercentage(this.item)
|
||||
return 0
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ interface SeriesDto {
|
|||
url: string,
|
||||
lastModified: string,
|
||||
booksCount: number,
|
||||
booksReadCount: number,
|
||||
booksUnreadCount: number,
|
||||
metadata: SeriesMetadata
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue