build errors

This commit is contained in:
Gauthier Roebroeck 2025-05-21 09:42:34 +08:00
parent 598db5a814
commit ddc48c1fbe
3 changed files with 5 additions and 5 deletions

View file

@ -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']

View file

@ -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"

View file

@ -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) {