feat: logout button
Some checks failed
Format / formatting (push) Successful in 6s
Build / build (push) Successful in 41s
CI / build (push) Failing after 9s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
ALAMI Adnane 2025-04-28 23:54:04 +02:00
parent a0cbd5e324
commit 7534d0d9c6

View File

@ -13,6 +13,7 @@
</a>
<div class="header-actions">
<button class="return-button" @click="store.logout">Logout</button>
<div ref="dropdownRef" class="dropdown-wrapper">
<button class="contact-button" @click.stop="toggleDropdown">
Contact
@ -39,6 +40,7 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount } from "vue";
import axios from "axios";
import { store } from "@/main.ts";
const IS_MOCK_MODE = true;
const dropdownRef = ref<HTMLElement | null>(null); // ref pour le dropdown