mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user