Skip to content

Commit

Permalink
chore: external logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Oct 19, 2024
1 parent b4ca83f commit 16b5fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/navbar/NavbarApp.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
const { loggedIn, user, clear } = useUserSession() as MappedLoveSessionComposable;
const logOut = () => {
const logout = () => {
clear();
navigateTo("/", { replace: true });
navigateTo("/", { replace: true, external: true });
};
</script>

Expand Down Expand Up @@ -57,7 +57,7 @@ const logOut = () => {
</li>
<template v-else>
<li><hr class="dropdown-divider"></li>
<li><button class="dropdown-item" @click="logOut()"><Icon name="solar:exit-linear" /> {{ t(page.name) }}</button></li>
<li><button class="dropdown-item" @click="logout()"><Icon name="solar:exit-linear" /> {{ t(page.name) }}</button></li>
</template>
</template>
</ul>
Expand Down

0 comments on commit 16b5fbe

Please sign in to comment.