Use relevant title for unlike study button

pull/10043/head
romnzs 2021-10-28 00:12:31 +03:00
parent 1fecc72638
commit 1af4360740
4 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ object jsI18n {
youAreNowASpectator,
pgnTags,
like,
unlike,
newTag,
commentThisPosition,
commentThisMove,

View File

@ -1067,6 +1067,7 @@ val `youAreNowAContributor` = new I18nKey("study:youAreNowAContributor")
val `youAreNowASpectator` = new I18nKey("study:youAreNowASpectator")
val `pgnTags` = new I18nKey("study:pgnTags")
val `like` = new I18nKey("study:like")
val `unlike` = new I18nKey("study:unlike")
val `newTag` = new I18nKey("study:newTag")
val `commentThisPosition` = new I18nKey("study:commentThisPosition")
val `commentThisMove` = new I18nKey("study:commentThisMove")

View File

@ -41,6 +41,7 @@
<string name="youAreNowASpectator">You are now a spectator</string>
<string name="pgnTags">PGN tags</string>
<string name="like">Like</string>
<string name="unlike">Unlike</string>
<string name="newTag">New tag</string>
<string name="commentThisPosition">Comment on this position</string>
<string name="commentThisMove">Comment on this move</string>

View File

@ -151,7 +151,7 @@ function metadata(ctrl: StudyCtrl): VNode {
class: { liked: d.liked },
attrs: {
'data-icon': d.liked ? '' : '',
title: ctrl.trans.noarg('like'),
title: ctrl.trans.noarg(d.liked ? 'unlike' : 'like'),
},
hook: bind('click', ctrl.toggleLike),
},