Skip to content

Commit

Permalink
FEAT: Login header validation #32
Browse files Browse the repository at this point in the history
  • Loading branch information
fujulia committed Jul 25, 2024
1 parent c0584cc commit 7b9e93b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/header/DesktopHeader.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script lang="ts" setup>
import { ListTitles, TextLogo, LoginButton } from '@/components'
import { ListTitles, TextLogo, LoginButton, UserProfile } from '@/components'
import { useTemplateStore } from '@/stores'
import { useNavbar } from '@/composables';
import { useNavbar, useAuth } from '@/composables';
const {titles, navbar} = useTemplateStore()
const { isLogged } = useAuth()
useNavbar()
</script>

Expand All @@ -21,7 +22,8 @@ useNavbar()
/>
</ul>
</div>
<LoginButton />
<LoginButton v-if='!isLogged'/>
<UserProfile v-else/>
</div>
</template>

Expand Down

0 comments on commit 7b9e93b

Please sign in to comment.