mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
use the correct like icon/boldness when not the current user liked it (#15409)
This commit is contained in:
parent
9693ad321c
commit
ded71b46c5
1 changed files with 7 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<div
|
||||
class="svg-icon mr-1"
|
||||
:title="$t('liked')"
|
||||
v-html="icons.liked"
|
||||
v-html="likedIcon"
|
||||
></div>
|
||||
+{{ likeCount }}
|
||||
</div>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
width: 16px;
|
||||
}
|
||||
|
||||
&.isLiked {
|
||||
&.isLiked.currentUserLiked {
|
||||
color: $purple-200;
|
||||
font-weight: bold;
|
||||
|
||||
|
|
@ -95,7 +95,11 @@ export default {
|
|||
}),
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
likedIcon () {
|
||||
return this.likedByCurrentUser ? this.icons.liked : this.icons.like;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async like () {
|
||||
this.$emit('toggle-like');
|
||||
|
|
|
|||
Loading…
Reference in a new issue