mark book as read once rated instantly in the view

This commit is contained in:
2025-11-11 00:35:39 +01:00
parent 6b2038aeec
commit 7c3293a116

View File

@@ -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});
}