mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat: add bulk tag update and improve selection action bar
This commit is contained in:
@@ -74,6 +74,13 @@ const localRating = ref<number | null>(props.book.rating)
|
||||
const hoverRating = ref<number | null>(null)
|
||||
const displayRating = computed(() => hoverRating.value ?? localRating.value)
|
||||
|
||||
watch(
|
||||
() => props.book.rating,
|
||||
(rating) => {
|
||||
localRating.value = rating ?? null
|
||||
},
|
||||
)
|
||||
|
||||
async function setRating(star: number) {
|
||||
const newRating = localRating.value === star ? null : star
|
||||
localRating.value = newRating
|
||||
|
||||
Reference in New Issue
Block a user