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"
: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>
<dropdown v-else class="notifications-menu" offset="8" :placement="placement">
<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 />
</base-button>
</template>

View File

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

View File

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