mirror of
https://github.com/gotson/komga.git
synced 2025-12-27 02:46:04 +01:00
build errors
This commit is contained in:
parent
598db5a814
commit
ddc48c1fbe
3 changed files with 5 additions and 5 deletions
1
next-ui/src/components.d.ts
vendored
1
next-ui/src/components.d.ts
vendored
|
|
@ -19,7 +19,6 @@ declare module 'vue' {
|
|||
AppDrawerMenuMedia: typeof import('./components/app/drawer/AppDrawerMenuMedia.vue')['default']
|
||||
AppDrawerMenuServer: typeof import('./components/app/drawer/AppDrawerMenuServer.vue')['default']
|
||||
AppFooter: typeof import('./components/AppFooter.vue')['default']
|
||||
BuidVersion: typeof import('./components/BuidVersion.vue')['default']
|
||||
BuildCommit: typeof import('./components/BuildCommit.vue')['default']
|
||||
BuildVersion: typeof import('./components/BuildVersion.vue')['default']
|
||||
HelloWorld: typeof import('./components/HelloWorld.vue')['default']
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
>
|
||||
<template #prepend>
|
||||
<v-badge
|
||||
:model-value="unreadCount > 0 && !$refs.group.isOpen"
|
||||
:model-value="unreadCount > 0 && !($refs as any).group.isOpen"
|
||||
dot
|
||||
floating
|
||||
color="info"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<v-col cols="auto">
|
||||
<v-tooltip
|
||||
text="Mark as read"
|
||||
:disabled="item._komga.read"
|
||||
:disabled="item._komga?.read"
|
||||
>
|
||||
<template #activator="{ props }">
|
||||
<v-fab
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
color="success"
|
||||
variant="tonal"
|
||||
size="small"
|
||||
:disabled="item._komga.read"
|
||||
:disabled="item._komga?.read"
|
||||
@click="markRead(item.id)"
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -87,7 +87,8 @@ const {data, error, unreadCount} = useAnnouncements()
|
|||
const {mutate} = useMarkAnnouncementsRead()
|
||||
|
||||
function markAllRead() {
|
||||
mutate(data.value.items.map(x => x.id))
|
||||
const ids = data.value?.items.map(x => x.id)
|
||||
if(ids) mutate(ids)
|
||||
}
|
||||
|
||||
function markRead(id: string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue