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