mirror of
https://github.com/flarum/framework.git
synced 2025-06-25 04:11:23 +08:00
Fix refresh button (#27)
This commit is contained in:
@ -73,7 +73,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||||||
Button.component({
|
Button.component({
|
||||||
className: 'Button Button--block DiscussionList-update',
|
className: 'Button Button--block DiscussionList-update',
|
||||||
onclick: () => {
|
onclick: () => {
|
||||||
this.refresh(false).then(() => {
|
this.attrs.state.refresh(false).then(() => {
|
||||||
this.loadingUpdated = false;
|
this.loadingUpdated = false;
|
||||||
app.pushedUpdates = [];
|
app.pushedUpdates = [];
|
||||||
app.setTitleCount(0);
|
app.setTitleCount(0);
|
||||||
|
Reference in New Issue
Block a user