Add discussion list refresh button

Closes flarum/core#139. Haven’t done pull to refresh yet though, but
that can come later.
This commit is contained in:
Toby Zerner
2015-07-07 15:32:08 +09:30
parent ef213cd8b2
commit 013d11554d
2 changed files with 25 additions and 6 deletions

View File

@ -163,6 +163,15 @@ export default class IndexPage extends Component {
})
);
items.add('refresh',
ActionButton.component({
title: 'Refresh',
icon: 'refresh',
className: 'btn btn-default btn-icon',
onclick: () => app.cache.discussionList.refresh()
})
);
return items;
}