feat(#2): Get notifications working again
This commit is contained in:
@@ -53,9 +53,6 @@
|
||||
>
|
||||
{{ notification.type }}
|
||||
</UBadge>
|
||||
<UBadge color="neutral" variant="subtle" size="xs">
|
||||
{{ notification.role }}
|
||||
</UBadge>
|
||||
</div>
|
||||
</div>
|
||||
</NuxtLink>
|
||||
@@ -80,13 +77,13 @@ const isOpen = computed({
|
||||
set: (value) => emit('update:modelValue', value)
|
||||
})
|
||||
|
||||
// const { notifications, fetchNotifications, handleNotificationClick } = useNotification()
|
||||
//
|
||||
// watch(isOpen, async (newValue) => {
|
||||
// if (newValue) {
|
||||
// await fetchNotifications()
|
||||
// }
|
||||
// })
|
||||
const { notifications, fetchNotifications, handleNotificationClick } = useNotification()
|
||||
|
||||
watch(isOpen, async (newValue) => {
|
||||
if (newValue) {
|
||||
await fetchNotifications()
|
||||
}
|
||||
})
|
||||
|
||||
function onNotificationClick(notification: NotificationDto) {
|
||||
handleNotificationClick(notification)
|
||||
|
||||
Reference in New Issue
Block a user