Merge branch 'front_foundation' of https://gitea.piair.dev/piair/MyINPulse into front_foundation
Some checks failed
Format / formatting (push) Successful in 5s
Build / build (push) Successful in 40s
CI / build (push) Failing after 8s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
Mohamed Maoulainine Maoulainine 2025-04-28 23:54:53 +02:00
commit 8b48a55bf0
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@ onMounted(() => {
if (roles.includes("MyINPulse-admin")) {
router.push("/admin");
} else if (roles.includes("MyINPulse-entrepreneur")) {
router.push("/leanCanva");
router.push("/canvas");
}
} catch (err) {
console.error("Failed to decode token", err);

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