Skip to content

Commit

Permalink
Correction erreur build
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jun 20, 2024
1 parent 2b96b5d commit 5f317ba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
13 changes: 4 additions & 9 deletions front-vite/src/components/EventReservationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<vv-form @submit="values => emits('submit', values)" class="mt-4" :validation-schema="formSchema"
:initial-values="formValues" v-slot="{ errors }">

<div class="card flex justify-content-center">
<button @click="showTemplate()" label="Save">Save</button>
</div>
<div class="space-y-12">

<div class="border-b border-gray-900/10 pb-12">
Expand Down Expand Up @@ -207,9 +204,8 @@
</span>
</div>
</vv-form>
<Toast :position="toastPosition">
<Toast>
<template #message="slotProps">
<span :class="iconClass"></span>
<div class="p-toast-message-text">
<span class="p-toast-summary">{{ slotProps.message.summary }}</span>
<div class="p-toast-detail" v-html="slotProps.message.detail" />
Expand All @@ -236,8 +232,8 @@ const props = defineProps({
required: true
},
saveError: {
type: String,
required: false,
type: Object,
required: false,
default: ''
},
displayCancel: {
Expand All @@ -262,8 +258,7 @@ const origins = CONFIGURATION.ORIGINS
watch(
() => props.saveError, (prev, next) => {
console.log(props.saveError)
() => props.saveError, (prev, next) => {
if (props.saveError.name == "Error") {
toast.add({ severity: 'error', summary: 'Sauvegarde impossible', detail: props.saveError.message, life: 10000 });
}
Expand Down
4 changes: 2 additions & 2 deletions front-vite/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const authStore = useAuthStore()
onMounted(async() => {
loading.value = true
const response = await fetch('page_accueil.md')
const text = await response.text()
markdownToHTML.value = marked(text) || 'Erreur lors de la récupération des informations à afficher.'
const text: string = await response.text()
markdownToHTML.value = await marked(text) || 'Erreur lors de la récupération des informations à afficher.'
loading.value = false
})
</script>
2 changes: 1 addition & 1 deletion front-vite/src/views/InfoAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ onMounted(async () => {
loading.value = true
const response = await fetch('page_info_admin.md')
const text = await response.text()
markdownToHTML.value = marked(text) || 'Erreur lors de la récupération des informations à afficher.'
markdownToHTML.value = await marked(text) || 'Erreur lors de la récupération des informations à afficher.'
loading.value = false
})
</script>
2 changes: 1 addition & 1 deletion front-vite/src/views/ReservationListingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ onBeforeMount(async () => {
loadData()
const response = await fetch('page_reservation.md')
const text = await response.text()
markdownToHTML.value = marked(text) || 'Erreur lors de la récupération des informations à afficher.'
markdownToHTML.value = await marked(text) || 'Erreur lors de la récupération des informations à afficher.'
})
Expand Down
2 changes: 1 addition & 1 deletion front-vite/src/views/StatsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

<script setup lang="ts">
import { getGlobalStats } from '@/utils/appli_api'
import { type Statistics } from '@/declaration'
import type { Statistics } from '@/declaration'
import { ref, onBeforeMount, watch } from 'vue'
Expand Down

0 comments on commit 5f317ba

Please sign in to comment.