Skip to content

Commit

Permalink
feat: add star toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Oct 25, 2024
1 parent 7a73037 commit 38c32df
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const store = useStore()
const isStarred = computed(() => {
return store?.getters['starred/isStarred'](document)
})
const toggleStar = () => {
store?.dispatch('starred/toggleStarDocument', document)
}
</script>
<template>
Expand All @@ -40,5 +44,6 @@ const isStarred = computed(() => {
:tooltip-placement="tooltipPlacement"
:vertical="vertical"
:fill="isStarred"
@click="toggleStar()"
/>
</template>

0 comments on commit 38c32df

Please sign in to comment.