mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-21 06:51:19 +08:00
Only update notifications when clicking on the bell button, not popper
This commit is contained in:
parent
da16c292be
commit
e2263873a8
@ -264,8 +264,12 @@ function isRecent(date: string): boolean {
|
||||
<icon-mdi-white-balance-sunny v-else class="text-[1.2em]"></icon-mdi-white-balance-sunny>
|
||||
</button>
|
||||
<div v-if="authStore.user">
|
||||
<Popper placement="bottom-end" @click="updateNotifications">
|
||||
<button class="flex items-center gap-2 rounded-md p-2 hover:(text-primary-400 bg-primary-0)" aria-label="Notifications">
|
||||
<Popper placement="bottom-end">
|
||||
<button
|
||||
class="flex items-center gap-2 rounded-md p-2 hover:(text-primary-400 bg-primary-0)"
|
||||
aria-label="Notifications"
|
||||
@click="updateNotifications"
|
||||
>
|
||||
<IconMdiBellOutline v-if="unreadNotifications === 0" class="text-[1.2em]" />
|
||||
<IconMdiBellBadge v-else class="text-[1.2em]" />
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user