mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
add unred indicator on drawer menu when closed
This commit is contained in:
parent
9c7458e94f
commit
35ad90f541
1 changed files with 14 additions and 1 deletions
|
|
@ -1,7 +1,18 @@
|
|||
<template>
|
||||
<v-app-bar elevation="2">
|
||||
<template #prepend>
|
||||
<v-app-bar-nav-icon @click="appStore.drawer = !appStore.drawer" />
|
||||
<v-app-bar-nav-icon @click="appStore.drawer = !appStore.drawer">
|
||||
<template #default>
|
||||
<v-badge
|
||||
:model-value="unreadCount > 0 && !appStore.drawer"
|
||||
dot
|
||||
floating
|
||||
color="info"
|
||||
>
|
||||
<v-icon icon="i-mdi:menu"></v-icon>
|
||||
</v-badge>
|
||||
</template>
|
||||
</v-app-bar-nav-icon>
|
||||
</template>
|
||||
<v-app-bar-title>
|
||||
<RouterLink to="/">
|
||||
|
|
@ -18,8 +29,10 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { useAppStore } from '@/stores/app'
|
||||
import { useAnnouncements } from '@/colada/announcements'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const { unreadCount } = useAnnouncements()
|
||||
</script>
|
||||
|
||||
<script lang="ts"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue