Skip to content
Snippets Groups Projects
Commit f2a19046 authored by VIktorGrev's avatar VIktorGrev
Browse files

fix: Fixing logout link

parent 0b3e9b26
No related branches found
No related tags found
1 merge request!80feat: Adding badges and menu selected visual
Pipeline #283364 passed with warnings
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<a data-testid="logout" <a data-testid="logout"
class="dropdown-item dropdown-username-link" class="dropdown-item dropdown-username-link"
href="#" href="#"
@click="() => { toggleDropdown(); toLogout(); }"> @click="toLogout()">
<img src="@/assets/icons/logout.svg">Logg ut <img src="@/assets/icons/logout.svg">Logg ut
</a> </a>
</li> </li>
...@@ -171,7 +171,7 @@ let counter = ref(0) ...@@ -171,7 +171,7 @@ let counter = ref(0)
return activeRoutes.includes(route.path); return activeRoutes.includes(route.path);
} }
function toggleDropdown(event) { function toggleDropdown(event: any) {
const dropdownMenu = event.target.closest('.dropdown-menu'); const dropdownMenu = event.target.closest('.dropdown-menu');
if (dropdownMenu) { if (dropdownMenu) {
dropdownMenu.classList.remove('show'); dropdownMenu.classList.remove('show');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment