2023-01-05 09:47:58 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
definePageMeta({
|
|
|
|
middleware: 'auth',
|
|
|
|
})
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
2023-01-29 15:18:27 +01:00
|
|
|
const pwaEnabled = useAppConfig().pwaEnabled
|
2023-01-05 09:47:58 +01:00
|
|
|
|
2023-04-01 13:14:12 +02:00
|
|
|
useHead({
|
2023-01-09 10:31:00 +01:00
|
|
|
title: () => `${t('settings.notifications.label')} | ${t('nav.settings')}`,
|
2023-01-05 09:47:58 +01:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<MainContent back-on-small-screen>
|
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
2023-01-09 10:31:00 +01:00
|
|
|
<span>{{ $t('settings.notifications.label') }}</span>
|
2023-01-05 09:47:58 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<SettingsItem
|
|
|
|
command
|
|
|
|
:text="$t('settings.notifications.notifications.label')"
|
|
|
|
to="/settings/notifications/notifications"
|
|
|
|
/>
|
|
|
|
<SettingsItem
|
|
|
|
command
|
|
|
|
:disabled="!pwaEnabled"
|
|
|
|
:text="$t('settings.notifications.push_notifications.label')"
|
|
|
|
:description="$t('settings.notifications.push_notifications.description')"
|
|
|
|
to="/settings/notifications/push-notifications"
|
|
|
|
/>
|
|
|
|
</MainContent>
|
|
|
|
</template>
|