about summary refs log tree commit diff
path: root/app/assets/javascripts/components
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-01 18:03:51 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-01 18:05:55 +0100
commitdd03118098d342398f91b56bd2f27d370bc5b661 (patch)
treef71f271940d889805636eaa0363df5fa7372670c /app/assets/javascripts/components
parent57304ac375e905fb0efa1b98a6100828bdbef2e1 (diff)
Fix follow icon changing plus to minus, add terms page stub
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r--app/assets/javascripts/components/features/followers/components/account.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/followers/components/account.jsx b/app/assets/javascripts/components/features/followers/components/account.jsx
index 9d863a1ae..adcd90360 100644
--- a/app/assets/javascripts/components/features/followers/components/account.jsx
+++ b/app/assets/javascripts/components/features/followers/components/account.jsx
@@ -64,9 +64,11 @@ const Account = React.createClass({
     }
 
     if (account.get('id') !== me) {
+      const following = account.getIn(['relationship', 'following']);
+
       buttons = (
         <div style={buttonsStyle}>
-          <IconButton icon='user-plus' title='Follow' onClick={this.handleFollow} active={account.getIn(['relationship', 'following'])} />
+          <IconButton icon={following ? 'user-times' : 'user-plus'} title='Follow' onClick={this.handleFollow} active={following} />
         </div>
       );
     }