1
0
Fork 0
mirror of https://github.com/elk-zone/elk.git synced 2024-12-24 21:48:16 +03:00
elk/pages/settings/notifications/index.vue
Joaquín Sánchez 36004a7eba
feat: bump to latest vue 3.4.19 ()
Co-authored-by: patak <matias.capeletto@gmail.com>
2024-02-24 12:24:21 +00:00

35 lines
938 B
Vue

<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
const { t } = useI18n()
const pwaEnabled = useAppConfig().pwaEnabled
useHydratedHead({
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>