1
0
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:
Toby Zerner
2015-08-04 21:22:22 +09:30
parent eee34598f1
commit c74b3434e7
3 changed files with 8 additions and 4 deletions

View File

@@ -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>;
}
}