UX: Use empty heart for unliked state

This commit is contained in:
Kris
2018-04-23 12:41:41 -04:00
parent 6215baca97
commit f812f5cd1c
4 changed files with 5 additions and 5 deletions
@@ -9,7 +9,7 @@ const REPLACEMENTS = {
'd-watching-first': 'dot-circle-o',
'd-drop-expanded': 'caret-down',
'd-drop-collapsed': 'caret-right',
'd-unliked': 'heart',
'd-unliked': 'heart-o',
'd-liked': 'heart',
'notification.mentioned': "at",
'notification.group_mentioned': "at",
@@ -12,7 +12,7 @@ function animateHeart($elem, start, end, complete) {
.animate({ textIndent: end }, {
complete,
step(now) {
$(this).css('transform','scale('+now+')');
$(this).css('transform','scale('+now+')').addClass("fa-heart").removeClass("fa-heart-o");
},
duration: 150
}, 'linear');
@@ -69,7 +69,7 @@ registerButton('like-count', attrs => {
const title = attrs.liked
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
: 'post.has_likes_title';
const icon = attrs.yours ? 'heart' : '';
const icon = attrs.yours ? 'heart-o' : '';
const additionalClass = attrs.yours ? 'my-likes' : 'regular-likes';
return { action: 'toggleWhoLiked',