diff --git a/src/App.vue b/src/App.vue index 855fff1..ea4a4fa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,8 +5,6 @@ diff --git a/src/pages/LoginPage.vue b/src/pages/LoginPage.vue index d2ea91e..2d7bb2e 100644 --- a/src/pages/LoginPage.vue +++ b/src/pages/LoginPage.vue @@ -89,7 +89,7 @@ import DiscordOauthComponent from 'src/components/DiscordOauthComponent.vue'; const email = ref(''); const password = ref(''); -console.log('version: process.env.VUE_APP_VERSION'); +console.log('version:' + process.env.VUE_APP_VERSION); const doLogin = async () => { login(email.value, password.value); diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 6c9f470..fcecfc6 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -2,6 +2,8 @@ import { defineStore } from 'pinia'; import { ID, account, functions, teams } from 'boot/appwrite'; import { ExecutionMethod, OAuthProvider, type Models } from 'appwrite'; import { computed, ref } from 'vue'; +import { useBoatStore } from './boat'; +import { useReservationStore } from './reservation'; export const useAuthStore = defineStore('auth', () => { const currentUser = ref | null>(null); @@ -14,6 +16,8 @@ export const useAuthStore = defineStore('auth', () => { try { currentUser.value = await account.get(); currentUserTeams.value = await teams.list(); + await useBoatStore().fetchBoats(); + await useReservationStore().fetchUserReservations(); } catch { currentUser.value = null; currentUserTeams.value = null;