about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-31 16:46:02 +0200
committerGitHub <noreply@github.com>2018-05-31 16:46:02 +0200
commit0ce5339a7b5286162a95eadfa34d37d041bd102f (patch)
tree0bd942c666ad352070e08994f55d846ce19258c2 /app
parent691107263c5e05973f9af9e1937abbc27430f54e (diff)
Make the refresh trends button refresh trends (#7685)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/getting_started/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js
index c45765ec4..f0a383449 100644
--- a/app/javascript/mastodon/features/getting_started/index.js
+++ b/app/javascript/mastodon/features/getting_started/index.js
@@ -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>