2022-12-13 16:50:42 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
2022-12-23 08:02:13 +03:00
|
|
|
|
|
|
|
// Default limit is 20 notifications, and servers are normally caped to 30
|
|
|
|
const paginator = useMasto().notifications.iterate({ limit: 30, types: ['mention'] })
|
|
|
|
|
|
|
|
const { clearNotifications } = useNotifications()
|
|
|
|
onActivated(clearNotifications)
|
|
|
|
|
|
|
|
const stream = await useMasto().stream.streamUser()
|
|
|
|
|
2022-12-13 16:50:42 +03:00
|
|
|
useHeadFixed({
|
|
|
|
title: () => `${t('tab.notifications_mention')} | ${t('nav_side.notifications')}`,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-23 08:02:13 +03:00
|
|
|
<NotificationPaginator v-bind="{ paginator, stream }" />
|
2022-12-13 16:50:42 +03:00
|
|
|
</template>
|