UX: remove word "likes" from first post
This commit is contained in:
parent
22b631510c
commit
9bf87f3665
|
@ -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 }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue