Add tooltip to header notifications menu

This commit is contained in:
Wolfgang Huß 2023-03-23 08:11:30 +01:00
parent f542ab3052
commit 28505a5b18
3 changed files with 24 additions and 2 deletions

View File

@ -4,11 +4,27 @@
class="notifications-menu" class="notifications-menu"
:to="{ name: 'notifications' }" :to="{ name: 'notifications' }"
> >
<base-button icon="bell" ghost circle /> <base-button
icon="bell"
ghost
circle
v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'),
placement: 'bottom-start',
}"
/>
</nuxt-link> </nuxt-link>
<dropdown v-else class="notifications-menu" offset="8" :placement="placement"> <dropdown v-else class="notifications-menu" offset="8" :placement="placement">
<template #default="{ toggleMenu }"> <template #default="{ toggleMenu }">
<base-button @click="toggleMenu" ghost circle> <base-button
ghost
circle
v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'),
placement: 'bottom-start',
}"
@click="toggleMenu"
>
<counter-icon icon="bell" :count="unreadNotificationsCount" danger /> <counter-icon icon="bell" :count="unreadNotificationsCount" danger />
</base-button> </base-button>
</template> </template>

View File

@ -651,6 +651,9 @@
"unread": "Ungelesen" "unread": "Ungelesen"
}, },
"group": "Beschreibung", "group": "Beschreibung",
"headerMenuButton": {
"tooltip": "Meine Benachrichtigungen"
},
"markAllAsRead": "Markiere alle als gelesen", "markAllAsRead": "Markiere alle als gelesen",
"pageLink": "Alle Benachrichtigungen", "pageLink": "Alle Benachrichtigungen",
"post": "Beitrag oder Gruppe", "post": "Beitrag oder Gruppe",

View File

@ -651,6 +651,9 @@
"unread": "Unread" "unread": "Unread"
}, },
"group": "Description", "group": "Description",
"headerMenuButton": {
"tooltip": "My notifications"
},
"markAllAsRead": "Mark all as read", "markAllAsRead": "Mark all as read",
"pageLink": "All notifications", "pageLink": "All notifications",
"post": "Post or Group", "post": "Post or Group",