|
|
|
@ -128,7 +128,6 @@ class ActionBar extends PureComponent {
|
|
|
|
|
|
|
|
|
|
handleShare = () => {
|
|
|
|
|
navigator.share({
|
|
|
|
|
text: this.props.status.get('search_index'),
|
|
|
|
|
url: this.props.status.get('url'),
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
@ -160,6 +159,11 @@ class ActionBar extends PureComponent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });
|
|
|
|
|
|
|
|
|
|
if ('share' in navigator) {
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShare });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
|
|
|
|
menu.push(null);
|
|
|
|
|
}
|
|
|
|
@ -199,10 +203,6 @@ class ActionBar extends PureComponent {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const shareButton = ('share' in navigator) && publicStatus && (
|
|
|
|
|
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShare} /></div>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const reblogPrivate = status.getIn(['account', 'id']) === me && status.get('visibility') === 'private';
|
|
|
|
|
|
|
|
|
|
let reblogTitle;
|
|
|
|
@ -221,7 +221,6 @@ class ActionBar extends PureComponent {
|
|
|
|
|
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_id', null) === null ? 'reply' : 'reply-all'} onClick={this.handleReplyClick} /></div>
|
|
|
|
|
<div className='detailed-status__button'><IconButton className={classNames({ reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} /></div>
|
|
|
|
|
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} /></div>
|
|
|
|
|
{shareButton}
|
|
|
|
|
<div className='detailed-status__button'><IconButton className='bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} /></div>
|
|
|
|
|
|
|
|
|
|
<div className='detailed-status__action-bar-dropdown'>
|
|
|
|
|