mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-10 09:29:18 +00:00
Make the refresh trends button refresh trends (#7685)
This commit is contained in:
parent
691107263c
commit
0ce5339a7b
|
@ -82,6 +82,10 @@ export default class GettingStarted extends ImmutablePureComponent {
|
|||
setTimeout(() => this.props.fetchTrends(), 5000);
|
||||
}
|
||||
|
||||
handleRefreshTrends = () => {
|
||||
this.props.fetchTrends();
|
||||
}
|
||||
|
||||
render () {
|
||||
const { intl, myAccount, multiColumn, unreadFollowRequests, trends } = this.props;
|
||||
|
||||
|
@ -138,7 +142,7 @@ export default class GettingStarted extends ImmutablePureComponent {
|
|||
<FormattedMessage id='trends.header' defaultMessage='Trending now' />
|
||||
</button>
|
||||
<div className='column-header__buttons'>
|
||||
<button className='column-header__button' title={intl.formatMessage(messages.refresh_trends)} aria-label={intl.formatMessage(messages.refresh_trends)}><i className='fa fa-refresh' /></button>
|
||||
<button onClick={this.handleRefreshTrends} className='column-header__button' title={intl.formatMessage(messages.refresh_trends)} aria-label={intl.formatMessage(messages.refresh_trends)}><i className='fa fa-refresh' /></button>
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue