Introduced ProfileStore

Corrected All Links to DataStore
This commit is contained in:
2024-12-21 22:33:42 +01:00
parent 813944fc23
commit b465f4a75a
64 changed files with 508 additions and 959 deletions

View File

@@ -1,5 +1,7 @@
<script setup >
import {useProfileStore} from "~/stores/profile.js";
definePageMeta({
layout: "notLoggedIn"
})
@@ -8,8 +10,8 @@ const supabase = useSupabaseClient()
const user = useSupabaseUser()
const router = useRouter()
const colorMode = useColorMode()
const dataStore = useDataStore()
const toast = useToast()
const profileStore = useProfileStore()
const isLight = computed({
get () {
@@ -61,7 +63,7 @@ const onSubmit = async (data) => {
} else {
//console.log("Login Successful")
dataStore.initializeData(user.id)
profileStore.initializeData(user.id)
router.push("/")