Skip to content

Commit

Permalink
fix: fix favorite state (#7428)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Oct 27, 2024
1 parent cdb1714 commit a809ecb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resources/js/Shared/Modules/ContactName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@

<!-- if the contact is not yet a favorite -->
<a-tooltip
v-if="!localData.is_favorite"
placement="topLeft"
:title="$t('Set as favorite')"
arrow-point-at-center
@click.prevent="toggleFavorite">
<StarIcon />
<StarIcon :is-favorite="localData.is_favorite" @click.prevent="toggleFavorite" />
</a-tooltip>

<!-- if the contact is a favorite -->
<StarIcon :is-favorite="localData.is_favorite" @click.prevent="toggleFavorite" />
</h1>
</div>
</template>
Expand Down

0 comments on commit a809ecb

Please sign in to comment.