Move push notification setting to separate page
Set up a dedicated Account Setttings page to hold account specific settings such as the push notifications.
This commit is contained in:
parent
d4cbbcbc2d
commit
ca51c07065
4 changed files with 38 additions and 4 deletions
22
pages/account/settings.vue
Normal file
22
pages/account/settings.vue
Normal file
|
@ -0,0 +1,22 @@
|
|||
<template>
|
||||
<main>
|
||||
<h1>Account Settings</h1>
|
||||
<p>Name: {{ session?.account.name }}</p>
|
||||
<p>Access: {{ session?.account.type }}</p>
|
||||
<p>
|
||||
<PushNotification />
|
||||
</p>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
definePageMeta({
|
||||
middleware: ["authenticated"],
|
||||
});
|
||||
|
||||
const { data: session } = useAccountSession();
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue