1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 23:17:43 +02:00

Extract NotificationList state (#2185)

* Extract NotificationList state
This commit is contained in:
Alexander Skvortsov
2020-06-18 17:08:06 -04:00
committed by GitHub
parent 5bca4fda9d
commit 65f2d5fb75
6 changed files with 117 additions and 99 deletions

View File

@@ -14,6 +14,7 @@ import routes from './routes';
import alertEmailConfirmation from './utils/alertEmailConfirmation';
import Application from '../common/Application';
import Navigation from '../common/components/Navigation';
import NotificationListState from './states/NotificationListState';
export default class ForumApplication extends Application {
/**
@@ -63,6 +64,13 @@ export default class ForumApplication extends Application {
*/
history = new History();
/**
* An object which controls the state of the user's notifications.
*
* @type {NotificationListState}
*/
notifications = new NotificationListState(this);
constructor() {
super();