fix: prod #17

Open
Clement wants to merge 6 commits from fix/prod into master
2 changed files with 18 additions and 3 deletions
Showing only changes of commit 4113b77f81 - Show all commits

View File

@ -1,4 +1,19 @@
Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB
Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/
Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/
# Prod link :
JSDocs : https://drink-tweb.docs.cb85.fr/
Swagger : https://drink-tweb.cb85.fr/api-docs/
PB : https://pb-tweb.cb85.fr/
Datatourisme :
- https://datatour-tweb.cb85.fr/
- https://datatour-tweb.cb85.fr/graphiql
- https://datatour-tweb.cb85.fr/voyager

View File

@ -204,9 +204,9 @@ console.log(fav);
.bindPopup(`<b>${prop.name}</b><br/>note : ${prop.rate} <br/>tags:<br/> ${tags} <p>favori : <input type="checkbox" name="like" id=${element.id}/><p>`)
.on("click", () => {
document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => {
e.addEventListener("click", () => {
e.addEventListener("click", async () => {
console.log(element)
saveToFav(element, e.checked)
await saveToFav(element, e.checked)
document.location.reload()
})
})