diff --git a/front/src/BookForm.vue b/front/src/BookForm.vue index f8209d1..fa6d1d1 100644 --- a/front/src/BookForm.vue +++ b/front/src/BookForm.vue @@ -7,7 +7,7 @@ }); let { data, error } = getBook(props.id); - + const imagePathOrDefault = "../defaultbook.png" onBeforeRouteUpdate(async (to, from) => { let res = getBook(to.params.id); data = res.data; @@ -17,8 +17,13 @@ diff --git a/front/src/locales/en.json b/front/src/locales/en.json index 32366d9..2032bc9 100644 --- a/front/src/locales/en.json +++ b/front/src/locales/en.json @@ -38,5 +38,8 @@ "read": "Read", "startread": "Start reading", "wantread": "I want to read it" + }, + "bookform": { + "error": "Error when loading book: {error}" } } diff --git a/front/src/locales/fr.json b/front/src/locales/fr.json index 44a5366..1587ecf 100644 --- a/front/src/locales/fr.json +++ b/front/src/locales/fr.json @@ -38,5 +38,8 @@ "read": "Lu", "startread": "Commencer la lecture", "wantread": "Je veux le lire" + }, + "bookform": { + "error": "Erreur pendant le chargement du livre: {error}" } }