11<template >
22 <main class =" min-h-full" >
3- <template v-if =" pending " >
3+ <template v-if =" appLoader " >
44 <div class =" flex-grow flex flex-col items-center justify-center mx-auto text-gray-600 opacity-50" >
55 <FlowFuseLogo class =" max-w-xs mx-auto w-full" />
66 </div >
3737
3838<script >
3939
40- import { mapGetters , mapState } from ' vuex'
40+ import { mapState } from ' pinia'
41+ import { mapGetters , mapState as mapVuexState } from ' vuex'
4142
4243import EmptyState from ' ../components/EmptyState.vue'
4344
4445import FlowFuseLogo from ' ../components/Logo.vue'
4546
4647import TeamTypeSelection from ' ../components/TeamTypeSelection.vue'
4748
49+ import { useAccountAuthStore } from ' @/stores/account-auth.js'
50+ import { useUxLoadingStore } from ' @/stores/ux-loading.js'
51+
4852export default {
4953 name: ' HomePage' ,
5054 components: {
@@ -58,8 +62,10 @@ export default {
5862 }
5963 },
6064 computed: {
61- ... mapState (' account' , [' pending ' , ' user ' , ' team' , ' teams' , ' redirectUrlAfterLogin ' , ' settings' ]),
65+ ... mapVuexState (' account' , [' team' , ' teams' , ' settings' ]),
6266 ... mapGetters (' account' , [' defaultUserTeam' ]),
67+ ... mapState (useAccountAuthStore, [' user' , ' redirectUrlAfterLogin' ]),
68+ ... mapState (useUxLoadingStore, [' appLoader' ]),
6369 canCreateTeam () {
6470 if (this .user .admin ) return true
6571 return Object .prototype .hasOwnProperty .call (this .settings , ' team:create' ) && this .settings [' team:create' ] === true
0 commit comments