Make read button work
This commit is contained in:
@@ -18,8 +18,13 @@
|
||||
})
|
||||
|
||||
function onRatingUpdate(rating) {
|
||||
data.value.rating = rating * 2
|
||||
putBookUpdate(props.id, {rating: data.value.rating})
|
||||
data.value.rating = rating * 2;
|
||||
putBookUpdate(props.id, {rating: data.value.rating});
|
||||
}
|
||||
|
||||
function onReadIconClick() {
|
||||
data.value.read = !data.value.read;
|
||||
putBookUpdate(props.id, {read: data.value.read});
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -50,9 +55,10 @@
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="iconscontainer">
|
||||
<BigIcon icon="BIconEye" :legend="$t('bookform.wantread')"/>
|
||||
<BigIcon icon="BIconBook" :legend="$t('bookform.startread')"/>
|
||||
<BigIcon icon="BIconCheckCircle" :legend="$t('bookform.read')"/>
|
||||
<BigIcon icon="BIconEye" :legend="$t('bookform.wantread')" :isSet="false"/>
|
||||
<BigIcon icon="BIconBook" :legend="$t('bookform.startread')" :isSet="false"/>
|
||||
<BigIcon icon="BIconCheckCircle" :legend="$t('bookform.read')" :isSet="data.read"
|
||||
@click="onReadIconClick"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user