File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup>
2+ import { useLogoutApi } from ' @userfrosting/sprinkle-account/composables'
23import { useAuthStore } from ' @userfrosting/sprinkle-account/stores'
34import { useConfigStore } from ' @userfrosting/sprinkle-core/stores'
45const config = useConfigStore ()
56
6- // Logout API variables
7+ // Auth and Logout API variables
78const auth = useAuthStore ()
9+ const { submitLogout } = useLogoutApi ()
810 </script >
911
1012<template >
@@ -28,7 +30,7 @@ const auth = useAuthStore()
2830 :label =" $t('ACCOUNT.SETTINGS')"
2931 v-if =" $checkAccess('update_account_settings')"
3032 :to =" { name: 'account.settings' }" />
31- <UFNavBarUserCardButton :label =" $t('LOGOUT')" @click =" auth.logout ()" />
33+ <UFNavBarUserCardButton :label =" $t('LOGOUT')" @click =" submitLogout ()" />
3234 </UFNavBarUserCard >
3335 </UFNavBar >
3436</template >
You can’t perform that action at this time.
0 commit comments