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) => {