mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +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
|
<div
|
||||||
class="svg-icon mr-1"
|
class="svg-icon mr-1"
|
||||||
:title="$t('liked')"
|
:title="$t('liked')"
|
||||||
v-html="icons.liked"
|
v-html="likedIcon"
|
||||||
></div>
|
></div>
|
||||||
+{{ likeCount }}
|
+{{ likeCount }}
|
||||||
</div>
|
</div>
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.isLiked {
|
&.isLiked.currentUserLiked {
|
||||||
color: $purple-200;
|
color: $purple-200;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
@@ -95,7 +95,11 @@ export default {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
likedIcon () {
|
||||||
|
return this.likedByCurrentUser ? this.icons.liked : this.icons.like;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async like () {
|
async like () {
|
||||||
this.$emit('toggle-like');
|
this.$emit('toggle-like');
|
||||||
|
|||||||
Reference in New Issue
Block a user