forked from Mirrors/elk
ab2881b9a2
Co-authored-by: Ayaka Rizumu <464388324@qq.com>
36 lines
930 B
Vue
36 lines
930 B
Vue
<script setup lang="ts">
|
|
definePageMeta({
|
|
middleware: 'auth',
|
|
})
|
|
|
|
const { t } = useI18n()
|
|
const pwaEnabled = useAppConfig().pwaEnabled
|
|
|
|
useHead({
|
|
title: () => `${t('settings.notifications.label')} | ${t('nav.settings')}`,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent back-on-small-screen>
|
|
<template #title>
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
<span>{{ $t('settings.notifications.label') }}</span>
|
|
</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>
|