mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
Refactor notification list loading
So that notifications are reloaded (if needed) every time the notifications dropdown button is clicked
This commit is contained in:
@@ -13,9 +13,12 @@ export default class NotificationsPage extends Component {
|
||||
app.history.push('notifications');
|
||||
app.drawer.hide();
|
||||
app.modal.close();
|
||||
|
||||
this.list = new NotificationList();
|
||||
this.list.load();
|
||||
}
|
||||
|
||||
view() {
|
||||
return <div className="NotificationsPage">{NotificationList.component()}</div>;
|
||||
return <div className="NotificationsPage">{this.list.render()}</div>;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user