Merge pull request #10043 from romnzs/studies-unlike
Use relevant title for unlike study buttonpull/10053/head
commit
dbb94707f0
|
@ -35,6 +35,7 @@ object jsI18n {
|
|||
youAreNowASpectator,
|
||||
pgnTags,
|
||||
like,
|
||||
unlike,
|
||||
newTag,
|
||||
commentThisPosition,
|
||||
commentThisMove,
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue