mark book as read once rated instantly in the view
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user