elk/pages/settings/notifications/index.vue

36 lines
965 B
Vue
Raw Normal View History

<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
2023-01-09 21:20:26 +01:00
const { $t } = useFluent()
const pwaEnabled = useRuntimeConfig().public.pwaEnabled
useHeadFixed({
2023-01-09 21:20:26 +01:00
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">
2023-01-09 21:20:26 +01:00
<span>{{ $t('settings_notifications_notifications_label') }}</span>
</div>
</template>
<SettingsItem
command
2023-01-09 21:20:26 +01:00
:text="$t('settings_notifications_notifications_label')"
to="/settings/notifications/notifications"
/>
<SettingsItem
command
:disabled="!pwaEnabled"
2023-01-09 21:20:26 +01:00
:text="$t('settings_notifications_push_notifications_label')"
:description="$t('settings_notifications_push_notifications_description')"
to="/settings/notifications/push-notifications"
/>
</MainContent>
</template>