|
|
@ -114,7 +114,6 @@ class StatusActionBar extends ImmutablePureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
handleShareClick = () => {
|
|
|
|
handleShareClick = () => {
|
|
|
|
navigator.share({
|
|
|
|
navigator.share({
|
|
|
|
text: this.props.status.get('search_index'),
|
|
|
|
|
|
|
|
url: this.props.status.get('url'),
|
|
|
|
url: this.props.status.get('url'),
|
|
|
|
}).catch((e) => {
|
|
|
|
}).catch((e) => {
|
|
|
|
if (e.name !== 'AbortError') console.error(e);
|
|
|
|
if (e.name !== 'AbortError') console.error(e);
|
|
|
@ -256,6 +255,10 @@ class StatusActionBar extends ImmutablePureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });
|
|
|
|
menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (publicStatus && 'share' in navigator) {
|
|
|
|
|
|
|
|
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShareClick });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (publicStatus) {
|
|
|
|
if (publicStatus) {
|
|
|
|
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
|
|
|
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -352,10 +355,6 @@ class StatusActionBar extends ImmutablePureComponent {
|
|
|
|
reblogTitle = intl.formatMessage(messages.cannot_reblog);
|
|
|
|
reblogTitle = intl.formatMessage(messages.cannot_reblog);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const shareButton = ('share' in navigator) && publicStatus && (
|
|
|
|
|
|
|
|
<IconButton className='status__action-bar__button' title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShareClick} />
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const filterButton = this.props.onFilter && (
|
|
|
|
const filterButton = this.props.onFilter && (
|
|
|
|
<IconButton className='status__action-bar__button' title={intl.formatMessage(messages.hide)} icon='eye' onClick={this.handleHideClick} />
|
|
|
|
<IconButton className='status__action-bar__button' title={intl.formatMessage(messages.hide)} icon='eye' onClick={this.handleHideClick} />
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -367,8 +366,6 @@ class StatusActionBar extends ImmutablePureComponent {
|
|
|
|
<IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
|
|
|
|
<IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
|
|
|
|
<IconButton className='status__action-bar__button bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} />
|
|
|
|
<IconButton className='status__action-bar__button bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} />
|
|
|
|
|
|
|
|
|
|
|
|
{shareButton}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{filterButton}
|
|
|
|
{filterButton}
|
|
|
|
|
|
|
|
|
|
|
|
<div className='status__action-bar__dropdown'>
|
|
|
|
<div className='status__action-bar__dropdown'>
|
|
|
|