about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-11 23:13:05 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-11 23:13:54 +0100
commit2b22c3303923928bb10ab64130bbf924e2f0de65 (patch)
tree37b0123e85d646698f5138f0cd4de17d43765721 /app/assets/javascripts
parent6a5036ab19276b57a44f2d81d7df85a83e872800 (diff)
Fix #157 - labels/titles on follow/unfollow buttons
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/components/account.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/components/account.jsx b/app/assets/javascripts/components/components/account.jsx
index d63ad646e..814d8a9c8 100644
--- a/app/assets/javascripts/components/components/account.jsx
+++ b/app/assets/javascripts/components/components/account.jsx
@@ -7,7 +7,8 @@ import IconButton from './icon_button';
 import { defineMessages, injectIntl } from 'react-intl';
 
 const messages = defineMessages({
-  follow: { id: 'account.follow', defaultMessage: 'Follow' }
+  follow: { id: 'account.follow', defaultMessage: 'Follow' },
+  unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }
 });
 
 const outerStyle = {
@@ -72,7 +73,7 @@ const Account = React.createClass({
     if (account.get('id') !== me && account.get('relationship', null) != null) {
       const following = account.getIn(['relationship', 'following']);
 
-      buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(messages.follow)} onClick={this.handleFollow} active={following} />;
+      buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(following ? messages.unfollow : messages.follow)} onClick={this.handleFollow} active={following} />;
     }
 
     return (