Quick modification for home

This commit is contained in:
PascalMarchesseault
2025-01-16 12:46:32 -05:00
parent f38262618e
commit 5672e2786f

View File

@@ -19,73 +19,35 @@
</button> </button>
</div> </div>
<div class="flex flex-col space-y-8 px-6 rounded-2xl py-8 shadow-2xl" <!-- MainPage -->
<div v-if="!isEditMode" class="rounded-2xl flex flex-col space-y-6"
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }"> :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
<!-- Main image -->
<div class="py-4">
<div v-if="mainTitle">
<h1 class="text-4xl font-bold text-center py-4 mb-4">{{ mainTitle }}</h1>
</div>
<img
v-if="mainImageUrl"
:src="mainImageUrl"
alt="Image principale"
class="rounded-2xl max-w-full h-auto cursor-pointer"
@click="openFullscreen(mainImageUrl)"/>
<p v-if="mainImageText" class="text-lg text-justify pa-6">
<!-- Titre principal --> {{ mainImageText }}
<div v-if="isEditMode"> </p>
<div class="text-2xl py-2"> Titre</div>
<textarea v-model="editableMainTitle" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<h1 v-else-if="mainTitle" class="text-4xl font-bold text-center ">{{ mainTitle }}</h1>
<!-- Image principale -->
<div class="relative flex justify-center">
<label v-if="isEditMode">
<input type="file" @change="updateImage('mainImageUrl', $event)" class="hidden"/>
<img :src="mainImageUrl || fallbackImage"
alt="Image principale"
class="rounded-md max-w-full h-auto cursor-pointer"/>
</label>
<img v-else-if="mainImageUrl" :src="mainImageUrl"
alt="Image principale"
class="rounded-md max-w-full h-auto cursor-pointer"
@click="openFullscreen(mainImageUrl)"/>
<button v-if="isEditMode" @click="deleteImage('mainImageUrl')"
class="absolute top-10 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div> </div>
<!-- Texte sous l'image principale --> <!-- Main video -->
<div v-if="isEditMode"> <div :style="{ backgroundColor: brandingStore.colors.surface, color: brandingStore.colors.onSurface }">
<div class="text-2xl py-2"> Description</div> <h2 v-if="videoSubtitleMain" class="text-3xl font-semibold text-center py-6">
<textarea v-model="editableMainImageText" class="w-full p-2 border rounded-md h-24" {{ videoSubtitleMain }}
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea> </h2>
</div>
<p v-else-if="mainImageText" class="text-lg text-justify">
{{ mainImageText }}
</p>
<!-- Titre video principale --> <div v-if="videoUrlMain" class="video-container">
<div v-if="isEditMode">
<div class="text-2xl py-2"> Titre Vidéo Princpiale</div>
<textarea v-model="editableVideoSubtitleMain" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<h2 v-else-if="videoSubtitleMain" class="text-2xl font-semibold text-center" >
{{ videoSubtitleMain }}
</h2>
<!-- Vidéo YouTube principale -->
<div v-if="isEditMode">
<div class="text-2xl py-2">URL vidéo</div>
<input
v-if="isEditMode"
type="text"
v-model="editableVideoUrlMain"
class="w-full p-2 border rounded-md"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
/>
</div>
<div class="flex justify-center">
<div v-if="isEditMode"></div>
<div v-else-if="videoUrlMain" class="video-container">
<iframe <iframe
:src="videoUrlMain" :src="videoUrlMain"
title="YouTube video player" title="YouTube video player"
@@ -94,241 +56,333 @@
class="video-frame"> class="video-frame">
</iframe> </iframe>
</div> </div>
<p v-if="mainVideoText" class="text-lg text-justify pa-6 mb-4">
{{ mainVideoText }}
</p>
</div>
<!-- Images -->
<div :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
<div>
<h2 v-if="imagesSubtitle" class="text-xl font-semibold text-center mb-6">
{{ imagesSubtitle }}
</h2>
</div>
<!-- images-->
<div class="pa-2">
<FullscreenImage ref="fullscreenImage" :image-url="currentImage"/>
<div>
<!-- Affichage des images -->
<div class="flex flex-wrap gap-4">
<!-- Première image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image1Url"
@click="openFullscreen(image1Url)">
<img :src="image1Url" alt="Image 1" class="rounded-md max-w-full h-auto cursor-pointer"/>
</div>
<!-- Deuxième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image2Url"
@click="openFullscreen(image2Url)">
<img :src="image2Url" alt="Image 2" class="rounded-md max-w-full h-auto cursor-pointer"/>
</div>
<!-- Troisième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image3Url"
@click="openFullscreen(image3Url)">
<img :src="image3Url" alt="Image 3" class="rounded-md max-w-full h-auto cursor-pointer"/>
</div>
<!-- Quatrième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image4Url"
@click="openFullscreen(image4Url)">
<img :src="image4Url" alt="Image 4" class="rounded-md max-w-full h-auto cursor-pointer"/>
</div>
</div>
</div>
</div>
<div>
<p v-if="imagesText" class="text-lg text-justify pa-6">
{{ imagesText }}
</p>
</div>
</div>
<!--SecondVideo-->
<div :style="{ backgroundColor: brandingStore.colors.surface, color: brandingStore.colors.onSurface }">
<h2 v-if="videoSubtitle" class="text-xl font-semibold text-center py-6">
{{ videoSubtitle }}
</h2>
<div class="flex justify-center items-center h-full">
<iframe
v-if="videoUrl"
:src="videoUrl"
title="YouTube video player"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
class="rounded-md"
style="width: 600px; height: 337px;"
></iframe>
</div>
<p v-if="videoText" class="text-lg text-justify pa-6">
{{ videoText }}
</p>
</div> </div>
<!-- Texte sous video principale --> <!-- Contact Info-->
<div v-if="isEditMode"> <div class="mb-6" :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
<div class="text-2xl py-2"> Description</div> <!-- mobile-->
<textarea v-model="editableMainVideoText" class="w-full p-2 border rounded-md h-24" <div v-if="smAndDown">
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea> <div class="flex flex-col space-y-10 justify-center items-center">
<!-- Affichage du téléphone -->
<div v-if="editablePhoneNumber" class="flex items-center space-x-2">
<i class="mdi mdi-phone-outline text-2xl"></i>
<span>{{ editablePhoneNumber }}</span>
</div>
<!-- Affichage de l'email -->
<div v-if="editableEmail" class="flex items-center space-x-2">
<i class="mdi mdi-email-outline text-2xl"></i>
<a
:href="`mailto:${editableEmail}`"
class="no-underline text-current"
>
{{ editableEmail }}
</a>
</div>
</div>
</div>
<!--pc-->
<div v-if="!smAndDown">
<div class="flex space-x-64 space-y-4 justify-center items-center">
<!-- Affichage du téléphone -->
<div v-if="editablePhoneNumber" class="flex items-center space-x-2">
<i class="mdi mdi-phone-outline text-2xl"></i>
<span>{{ editablePhoneNumber }}</span>
</div>
<!-- Affichage de l'email -->
<div v-if="editableEmail" class="flex items-center space-x-2">
<i class="mdi mdi-email-outline text-2xl"></i>
<a
:href="`mailto:${editableEmail}`"
class="no-underline text-current"
>
{{ editableEmail }}
</a>
</div>
</div>
</div>
</div> </div>
<p v-else-if="mainVideoText" class="text-lg text-justify"> </div>
{{ mainVideoText }}
</p>
<!-- Sous-titre avant les deux images --> <!-- Editmode-->
<div v-if="isEditMode"> <div v-if="isEditMode" class="space-y-10">
<div v-if="isEditMode" class="text-2xl py-2"> Sous-titre</div>
<textarea v-model="editableImagesSubtitle" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<h2 v-else-if="imagesSubtitle" class="text-2xl font-semibold text-center">
{{ imagesSubtitle }}
</h2>
<!-- 4 images côte à côte --> <!--Main image-->
<FullscreenImage ref="fullscreenImage" :image-url="currentImage" /> <div class="rounded-2xl"
<div> :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
<!-- Mode édition -->
<div v-if="isEditMode"> <div v-if="isEditMode">
<div class="text-2xl py-2">Images</div> <div class="text-2xl pa-4">Image principale</div>
<div class="grid grid-cols-1 gap-4 md:grid-cols-4"> <v-text-field label="Titre" variant="outlined" v-model="editableMainTitle" class="w-full p-2"></v-text-field>
<!-- Première image -->
<div class="relative">
<label>
<input type="file" @change="updateImage('image1Url', $event)" class="hidden" />
<img :src="image1Url || fallbackImage"
alt="Image 1"
class="rounded-md max-w-full h-auto cursor-pointer" />
</label>
<button @click="deleteImage('image1Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div>
<!-- Deuxième image -->
<div class="relative">
<label>
<input type="file" @change="updateImage('image2Url', $event)" class="hidden" />
<img :src="image2Url || fallbackImage"
alt="Image 2"
class="rounded-md max-w-full h-auto cursor-pointer" />
</label>
<button @click="deleteImage('image2Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div>
<!-- Troisième image -->
<div class="relative">
<label>
<input type="file" @change="updateImage('image3Url', $event)" class="hidden" />
<img :src="image3Url || fallbackImage"
alt="Image 3"
class="rounded-md max-w-full h-auto cursor-pointer" />
</label>
<button @click="deleteImage('image3Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div>
<!-- Quatrième image -->
<div class="relative">
<label>
<input type="file" @change="updateImage('image4Url', $event)" class="hidden" />
<img :src="image4Url || fallbackImage"
alt="Image 4"
class="rounded-md max-w-full h-auto cursor-pointer" />
</label>
<button @click="deleteImage('image4Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div>
</div>
</div> </div>
<!-- Mode normal --> <div class="relative flex justify-center">
<div v-else> <label v-if="isEditMode">
<div class="flex flex-wrap gap-4"> <input type="file" @change="updateImage('mainImageUrl', $event)" class="hidden"/>
<!-- Première image --> <img :src="mainImageUrl || fallbackImage"
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image1Url" @click="openFullscreen(image1Url)"> alt="Image principale"
<img :src="image1Url" alt="Image 1" class="rounded-md max-w-full h-auto cursor-pointer" /> class=" max-w-full h-auto cursor-pointer"/>
</div> </label>
<!-- Deuxième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image2Url" @click="openFullscreen(image2Url)">
<img :src="image2Url" alt="Image 2" class="rounded-md max-w-full h-auto cursor-pointer" />
</div>
<!-- Troisième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image3Url" @click="openFullscreen(image3Url)">
<img :src="image3Url" alt="Image 3" class="rounded-md max-w-full h-auto cursor-pointer" />
</div>
<!-- Quatrième image -->
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image4Url" @click="openFullscreen(image4Url)">
<img :src="image4Url" alt="Image 4" class="rounded-md max-w-full h-auto cursor-pointer" />
</div>
</div>
<button v-if="isEditMode" @click="deleteImage('mainImageUrl')"
class="absolute top-10 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div> </div>
<v-textarea label="Description" variant="outlined" v-model="editableMainImageText"
class="w-full p-2 py-6 "></v-textarea>
</div> </div>
<!--Main VideoUrl-->
<div class="rounded-2xl"
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface}">
<!--Titre Video-->
<div class="text-2xl pa-4">Vidéo Princpiale</div>
<v-text-field
label="Titre"
variant="outlined"
v-model="editableVideoSubtitleMain"
class="w-full p-2 border rounded-md"></v-text-field>
<!--urlvideo-->
<!-- Texte sous les deux images --> <v-text-field
<div v-if="isEditMode"> label="URL Video"
<div class="text-2xl py-2"> Images</div> variant="outlined"
<textarea v-model="editableImagesText" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<p v-else-if="imagesText" class="text-lg text-justify">
{{ imagesText }}
</p>
<!-- Sous-titre avant la vidéo -->
<div v-if="isEditMode">
<div class="text-2xl py-2"> Titre Video</div>
<textarea v-model="editableVideoSubtitle" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<h2 v-else-if="videoSubtitle" class="text-2xl font-semibold text-center">
{{ videoSubtitle }}
</h2>
<!-- Vidéo YouTube -->
<div v-if="isEditMode">
<div class="text-2xl py-2">URL vidéo</div>
<input
v-if="isEditMode" v-if="isEditMode"
type="text" type="text"
v-model="editableVideoUrl" v-model="editableVideoUrlMain"
class="w-full p-2 border rounded-md" class="w-full p-2 rounded-md"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
/> />
</div>
<div class="flex justify-center">
<div v-if="isEditMode"></div> <!-- Texte sous video principale -->
<iframe <v-text-field
v-else-if="videoUrl" label="Description"
:src="videoUrl" v-model="editableMainVideoText" class="w-full p-2 rounded-md h-24"
title="YouTube video player" variant="outlined"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></v-text-field>
allowfullscreen
class="rounded-md"
style="width: 600px; height: 337px;"
></iframe>
</div> </div>
<!-- Texte sous la vidéo --> <!-- 4 images-->
<div v-if="isEditMode" class="text-2xl"> Description</div> <div class="rounded-2xl"
<div v-if="isEditMode"> :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface}">
<textarea v-model="editableVideoText" class="w-full p-2 border rounded-md h-24"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
</div>
<p v-else-if="videoText" class="text-lg text-justify">
{{ videoText }}
</p>
<!-- Informations de contact --> <div v-if="isEditMode">
<div class="flex flex-col space-y-6 mt-8"> <div class="text-2xl pa-4">Galerie d'images</div>
<div v-if="isEditMode" class="flex flex-col space-y-2"> <v-text-field label="Titre" variant="outlined" v-model="editableImagesSubtitle" class="w-full p-2 rounded-md"></v-text-field>
<!-- Édition du téléphone --> </div>
<div>
<label class="text-lg">Numéro de téléphone</label> <!--images-->
<input <div class=" text-2xl pa-2
v-model="editablePhoneNumber" ">Images
type="text" </div>
class="w-full p-2 border rounded-md" <div class="pa-2 grid grid-cols-1 gap-4 md:grid-cols-4">
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }" <!-- Première image -->
/> <div class="relative">
<label>
<input type="file" @change="updateImage('image1Url', $event)" class="hidden"/>
<img :src="image1Url || fallbackImage"
alt="Image 1"
class="rounded-md max-w-full h-auto cursor-pointer"/>
</label>
<button @click="deleteImage('image1Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div> </div>
<!-- Édition de l'email -->
<div> <!-- Deuxième image -->
<label class="text-lg">Adresse email</label> <div class="relative">
<input <label>
v-model="editableEmail" <input type="file" @change="updateImage('image2Url', $event)" class="hidden"/>
type="text" <img :src="image2Url || fallbackImage"
class="w-full p-2 border rounded-md" alt="Image 2"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }" class="rounded-md max-w-full h-auto cursor-pointer"/>
/> </label>
</div> <button @click="deleteImage('image2Url')"
</div> class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
<div X
v-else </button>
class="flex flex-col sm:flex-row sm:space-x-64 space-y-4 sm:space-y-0 justify-center items-center" </div>
>
<!-- Affichage du téléphone --> <!-- Troisième image -->
<div v-if="editablePhoneNumber" class="flex items-center space-x-2"> <div class="relative">
<i class="mdi mdi-phone-outline text-2xl"></i> <label>
<span>{{ editablePhoneNumber }}</span> <input type="file" @change="updateImage('image3Url', $event)" class="hidden"/>
</div> <img :src="image3Url || fallbackImage"
<!-- Affichage de l'email --> alt="Image 3"
<div v-if="editableEmail" class="flex items-center space-x-2"> class="rounded-md max-w-full h-auto cursor-pointer"/>
<i class="mdi mdi-email-outline text-2xl"></i> </label>
<a <button @click="deleteImage('image3Url')"
:href="`mailto:${editableEmail}`" class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
class="no-underline text-current" X
> </button>
{{ editableEmail }} </div>
</a>
<!-- Quatrième image -->
<div class="relative">
<label>
<input type="file" @change="updateImage('image4Url', $event)" class="hidden"/>
<img :src="image4Url || fallbackImage"
alt="Image 4"
class="rounded-md max-w-full h-auto cursor-pointer"/>
</label>
<button @click="deleteImage('image4Url')"
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
X
</button>
</div> </div>
</div> </div>
<!-- Description-->
<div class="text-2xl pa-2"> Description</div>
<v-textarea variant="outlined" v-model="editableImagesText" class="w-full p-2 border rounded-md"></v-textarea>
</div> </div>
<!-- Second Video -->
<div class="rounded-2xl"
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface }">
<div class="text-2xl pa-4">Vidéo Secondaire</div>
<v-text-field
label="Titre"
variant="outlined"
v-model="editableVideoSubtitle"
class="w-full p-2"
></v-text-field>
<v-text-field
label="URL Vidéo"
variant="outlined"
v-if="isEditMode"
v-model="editableVideoUrl"
class="w-full p-2"
></v-text-field>
<v-textarea
label="Description"
variant="outlined"
v-model="editableVideoText"
class="w-full p-2 py-6"
></v-textarea>
</div>
<!-- Informations de Contact -->
<div class="rounded-2xl"
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface }">
<div class="text-2xl pa-4">Informations de Contact</div>
<v-text-field
label="Numéro de Téléphone"
variant="outlined"
v-model="editablePhoneNumber"
class="w-full p-2"
></v-text-field>
<v-text-field
label="Adresse Email"
variant="outlined"
v-model="editableEmail"
class="w-full p-2"
></v-text-field>
</div>
</div> </div>
</template> </template>
<script setup> <script setup>
import {ref, onMounted} from "vue"; import {ref, onMounted} from "vue";
import { useClient } from "@/plugins/api.js"; import {useClient} from "@/plugins/api.js";
import {useBrandingStore} from "@/stores/brandingStore.js"; import {useBrandingStore} from "@/stores/brandingStore.js";
import { useCreatorProfileStore } from "@/stores/creatorProfileStore.js"; import {useCreatorProfileStore} from "@/stores/creatorProfileStore.js";
import { useDisplay } from "vuetify"; import {useDisplay} from "vuetify";
import { watch} from "vue"; import {watch} from "vue";
import FullscreenImage from "@/views/creators/FullscreenImage.vue"; import FullscreenImage from "@/views/creators/FullscreenImage.vue";
const { smAndDown } = useDisplay(); const {smAndDown} = useDisplay();
const isMobileView = ref(smAndDown.value); const isMobileView = ref(smAndDown.value);
@@ -341,7 +395,6 @@ const isLoggedIn = true;
const isEditMode = ref(false); const isEditMode = ref(false);
const currentImage = ref(""); const currentImage = ref("");
const fullscreenImage = ref(null); const fullscreenImage = ref(null);
@@ -436,8 +489,6 @@ function toggleEditMode() {
} }
// Supprimer une image // Supprimer une image
function deleteImage(field) { function deleteImage(field) {
switch (field) { switch (field) {
@@ -491,7 +542,6 @@ function updateImage(field, event) {
} }
// Charger les données au montage // Charger les données au montage
onMounted(() => { onMounted(() => {
mainTitle.value = brandingStore.presentationInfos.title; mainTitle.value = brandingStore.presentationInfos.title;
@@ -510,7 +560,7 @@ onMounted(() => {
videoUrlMain.value = brandingStore.presentationInfos.videoUrlMain; videoUrlMain.value = brandingStore.presentationInfos.videoUrlMain;
videoText.value = brandingStore.presentationInfos.videoText; videoText.value = brandingStore.presentationInfos.videoText;
editablePhoneNumber.value = brandingStore.presentationInfos.phoneNumber; editablePhoneNumber.value = brandingStore.presentationInfos.phoneNumber;
editableEmail.value= brandingStore.presentationInfos.email; editableEmail.value = brandingStore.presentationInfos.email;
phoneNumber.value = brandingStore.presentationInfos.phoneNumber; phoneNumber.value = brandingStore.presentationInfos.phoneNumber;
email.value = brandingStore.presentationInfos.email; email.value = brandingStore.presentationInfos.email;
}); });
@@ -559,7 +609,7 @@ async function saveChanges() {
const response = await client.post( const response = await client.post(
`/api/creators/${creatorProfileStore.creator.id}/presentation-infos`, `/api/creators/${creatorProfileStore.creator.id}/presentation-infos`,
formData, formData,
{ headers: { "Content-Type": "multipart/form-data" } } {headers: {"Content-Type": "multipart/form-data"}}
); );
// Mettre à jour les valeurs locales pour refléter les changements // Mettre à jour les valeurs locales pour refléter les changements
@@ -592,8 +642,6 @@ async function saveChanges() {
} }
function cancelEdit() { function cancelEdit() {
// Restaurer les valeurs d'origine // Restaurer les valeurs d'origine
editableMainTitle.value = mainTitle.value; editableMainTitle.value = mainTitle.value;