UX: remove word "likes" from first post

This commit is contained in:
Arpit Jalan 2018-03-30 02:44:59 +05:30
parent 22b631510c
commit 9bf87f3665
1 changed files with 1 additions and 2 deletions

View File

@ -69,12 +69,11 @@ 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 contents = (attrs.post_number === 1) ? I18n.t("post.has_likes", { count }) : count;
return { action: 'toggleWhoLiked',
title,
className: 'like-count highlight-action',
contents,
contents: count,
titleOptions: {count: attrs.liked ? (count-1) : count }
};
}