mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 20:57:24 +01:00
use the correct like icon/boldness when not the current user liked it (#15409)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user