From 02bff19de021051529033ae0520763fe20767f6b Mon Sep 17 00:00:00 2001 From: ALAMI Adnane Date: Tue, 6 May 2025 23:31:01 +0200 Subject: [PATCH] fix: il ya encors un problem de config! des erreurs de type (Connection to localhost:5433 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections) --- front/MyINPulse-front/src/App.vue | 23 ++++--------------- .../src/components/canvas/HeaderCanvas.vue | 1 - front/MyINPulse-front/src/views/AdminMain.vue | 7 +++--- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/front/MyINPulse-front/src/App.vue b/front/MyINPulse-front/src/App.vue index d7f23f6..d359e36 100644 --- a/front/MyINPulse-front/src/App.vue +++ b/front/MyINPulse-front/src/App.vue @@ -4,22 +4,9 @@ import ErrorWrapper from "@/views/errorWrapper.vue"; diff --git a/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue b/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue index 731a96b..3b68bb3 100644 --- a/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue +++ b/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue @@ -35,7 +35,6 @@ - Retour diff --git a/front/MyINPulse-front/src/views/AdminMain.vue b/front/MyINPulse-front/src/views/AdminMain.vue index dd2e23e..ae219bd 100644 --- a/front/MyINPulse-front/src/views/AdminMain.vue +++ b/front/MyINPulse-front/src/views/AdminMain.vue @@ -57,6 +57,8 @@ const projects = ref< }[] >([]); + + const fallbackProjects = [ { name: "Projet Alpha", @@ -80,7 +82,7 @@ const createFirstAdmin = () => { } ); }; - +onMounted(createFirstAdmin); const fetchProjects = () => { getAdminProjects( @@ -134,8 +136,6 @@ const fetchProjects = () => { ); }; -onMounted(fetchProjects); -onMounted(createFirstAdmin); const pendingProjects = ref([]); @@ -144,6 +144,7 @@ const mockPendingProjects = [ new Project({ projectName: "l'air", creationDate: "09-03-2023" }), ]; +onMounted(fetchProjects); onMounted(() => { getPendingProjects( (response) => {