1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-22 02:28:01 +09:00
elk/pages/settings/notifications/push-notifications.vue

26 lines
677 B
Vue
Raw Normal View History

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