From 7c3293a1160eaa74c59eb7f20173dd75ef8bebfe Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Tue, 11 Nov 2025 00:35:39 +0100 Subject: [PATCH] mark book as read once rated instantly in the view --- front/src/BookForm.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/src/BookForm.vue b/front/src/BookForm.vue index 41f5eba..dcf1488 100644 --- a/front/src/BookForm.vue +++ b/front/src/BookForm.vue @@ -20,6 +20,9 @@ function onRatingUpdate(rating) { data.value.rating = rating * 2; + if (data.value.rating > 0) { + data.value.read = true; + } putRateBook(props.id, {rating: data.value.rating}); }