Skip to content

Commit

Permalink
logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Feb 5, 2024
1 parent e493ca3 commit 5aaff06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/common/ProfileDropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if (browser){
localStorage.removeItem('user');
}
goto('/');
goto('login');
};
</script>

Expand All @@ -39,8 +39,8 @@
/> <span key="t-settings">{$_('Settings')}</span>
</DropdownItem>
<DropdownItem divider />
<DropdownItem href="#" >
<div on:click={logout}>
<DropdownItem href="#" on:click={logout}>
<div>
<i class="bx bx-power-off font-size-16 align-middle me-1 text-danger" /> <span>Logout</span>
</div>
</DropdownItem>
Expand Down

0 comments on commit 5aaff06

Please sign in to comment.