Compare commits

..

No commits in common. "ba99b3c2b09a9986e25fd113f0641d169cf6ef55" and "c4ba7646d567c8613a6cd71c17b044cf1a5c5448" have entirely different histories.

4 changed files with 7 additions and 44 deletions

View File

@ -50,17 +50,15 @@ import axios from "axios";
import { axiosInstance } from "@/services/api.ts";
const IS_MOCK_MODE = true;
const IS_ADMIN = false;
const props = defineProps<{
projectId: number;
title: number;
titleText: string;
description: string;
is_admin: number;
}>();
const IS_ADMIN = props.is_admin;
const expanded = ref(false);
const currentDescriptions = ref<string[]>([]);
currentDescriptions.value[0] = props.description;

View File

@ -10,12 +10,14 @@
<button
v-for="(email, index) in entrepreneurEmails"
:key="index"
@click="contactSingle(email)"
@click="copyToClipboard(email)"
>
{{ email }}
</button>
</div>
</div>
<RouterLink to="/" class="return-button">Retour</RouterLink>
</div>
</header>
@ -103,29 +105,9 @@ const mockFetchEntrepreneurs = async (projectId :number) => {
};
const contactAll = () => {
const allEmails = entrepreneurEmails.value.join(", ");
navigator.clipboard.writeText(allEmails)
.then(() => {
alert("Tous les emails copiés dans le presse-papiers !");
window.open("https://partage.bordeaux-inp.fr/", "_blank");
})
.catch(err => {
console.error("Erreur lors de la copie :", err);
});
alert("Contacter tous les entrepreneurs : " + entrepreneurEmails.value.join(", "));
};
const contactSingle = (email: string) => {
navigator.clipboard.writeText(email)
.then(() => {
alert(`Adresse copiée : ${email}`);
window.open("https://partage.bordeaux-inp.fr/", "_blank");
})
.catch(err => {
console.error("Erreur lors de la copie :", err);
});
};
const copyToClipboard = (email: string) => {
navigator.clipboard.writeText(email).then(() => {
alert(`Adresse copiée : ${email}`);

View File

@ -8,7 +8,6 @@
:description="item.description"
:project-id="item.projectId"
:class="['canvas-item', item.class, 'card', 'shadow', 'p-3']"
:is_admin=is_admin
/>
</div>
</template>
@ -17,10 +16,6 @@
import { ref, onMounted } from "vue";
import CanvasItem from "@/components/canvas/CanvasItem.vue";
const props = defineProps<{
is_admin: number;
}>();
const items = ref([
{ projectId: 1, title: 1, title_text: "1. Problème", description: "3 problèmes essentiels à résoudre pour le client", class: "Probleme" },
{ projectId: 1, title: 2, title_text: "2. Segments", description: "Les segments de clientèle visés", class: "Segments" },

View File

@ -10,7 +10,7 @@
<p class="canvas-help-text">
Cliquez sur un champ du tableau pour afficher son contenu en détail ci-dessous.
</p>
<LeanCanvas :is_admin=is_admin />
<LeanCanvas />
<div class="info-box">
<p>
@ -26,23 +26,11 @@
import HeaderCanvas from "../components/canvas/HeaderCanvas.vue";
import LeanCanvas from '../components/canvas/LeanCanvas.vue';
import { ref, onMounted, defineProps} from "vue";
import { ref, onMounted } from "vue";
import { axiosInstance } from "@/services/api.ts";
const IS_MOCK_MODE = true;
/*
const props = defineProps<{
projectId: number;
token: TokenPayload;
}>();
is_admin = token.includes("MyINPulse-admin")
*/
const is_admin = 0
// Variables pour les informations de l'administrateur
const admin = ref({
idUser: 0,