elk/pages/settings/notifications/push-notifications.vue
Joaquín Sánchez ab2881b9a2
refactor: remove useHeadFixed workaround (#1938)
Co-authored-by: Ayaka Rizumu <464388324@qq.com>
2023-04-01 04:14:12 -07:00

26 lines
661 B
Vue

<script setup lang="ts">
definePageMeta({
middleware: ['auth', () => {
if (!useAppConfig().pwaEnabled)
return navigateTo('/settings/notifications')
}],
})
const { t } = useI18n()
useHead({
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>