2023-01-05 08:47:58 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
definePageMeta({
|
|
|
|
middleware: ['auth', () => {
|
2023-01-29 14:18:27 +00:00
|
|
|
if (!useAppConfig().pwaEnabled)
|
2023-01-05 08:47:58 +00:00
|
|
|
return navigateTo('/settings/notifications')
|
|
|
|
}],
|
|
|
|
})
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-04-01 11:14:12 +00:00
|
|
|
useHead({
|
2023-01-05 08:47:58 +00:00
|
|
|
title: () => `${t('settings.notifications.push_notifications.label')} | ${t('settings.notifications.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<MainContent back>
|
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<span>{{ $t('settings.notifications.push_notifications.label') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<NotificationPreferences show />
|
|
|
|
</MainContent>
|
|
|
|
</template>
|