|
|
|
@ -92,10 +92,14 @@ const StatusActionBar = React.createClass({ |
|
|
|
|
menu.push({ text: intl.formatMessage(messages.report, { name: status.getIn(['account', 'username']) }), action: this.handleReport }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let reblogIcon = 'retweet'; |
|
|
|
|
if (status.get('visibility') === 'direct') reblogIcon = 'envelope'; |
|
|
|
|
else if (status.get('visibility') === 'private') reblogIcon = 'lock'; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div style={{ marginTop: '10px', overflow: 'hidden' }}> |
|
|
|
|
<div style={{ float: 'left', marginRight: '18px'}}><IconButton title={intl.formatMessage(messages.reply)} icon='reply' onClick={this.handleReplyClick} /></div> |
|
|
|
|
<div style={{ float: 'left', marginRight: '18px'}}><IconButton disabled={status.get('visibility') === 'private' || status.get('visibility') === 'direct'} active={status.get('reblogged')} title={intl.formatMessage(messages.reblog)} icon={status.get('visibility') === 'direct' ? 'envelope' : (status.get('visibility') === 'private' ? 'lock' : 'retweet')} onClick={this.handleReblogClick} /></div> |
|
|
|
|
<div style={{ float: 'left', marginRight: '18px'}}><IconButton disabled={status.get('visibility') === 'private' || status.get('visibility') === 'direct'} active={status.get('reblogged')} title={intl.formatMessage(messages.reblog)} icon={reblogIcon} onClick={this.handleReblogClick} /></div> |
|
|
|
|
<div style={{ float: 'left', marginRight: '18px'}}><IconButton animate={true} active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} activeStyle={{ color: '#ca8f04' }} /></div> |
|
|
|
|
|
|
|
|
|
<div style={{ width: '18px', height: '18px', float: 'left' }}> |
|
|
|
|