Fix refresh button (#27)

This commit is contained in:
Sami Mazouz 2020-11-01 22:45:09 +01:00 committed by GitHub
parent 19edd65173
commit 8dc99db73e

View File

@ -73,7 +73,7 @@ app.initializers.add('flarum-pusher', () => {
Button.component({
className: 'Button Button--block DiscussionList-update',
onclick: () => {
this.refresh(false).then(() => {
this.attrs.state.refresh(false).then(() => {
this.loadingUpdated = false;
app.pushedUpdates = [];
app.setTitleCount(0);